std::any::Any
pub trait Any: 'static
- Kind
- trait
- Module
std::any- Since
- 1.0.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::any in the Rust reference. This page has 23 cards.
pub trait Any: 'static
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downcast<T>(self) -> Result<Box<T, A>, Box<dyn Any, A>> where T: Any
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downcast_mut<T>(&mut self) -> Option<&mut T> where T: Any
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn downcast_ref<T>(&self) -> Option<&T> where T: Any
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn downcast_unchecked<T>(self) -> Box<T, A> where T: Any
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn downcast_unchecked_mut<T>(&mut self) -> &mut T where T: Any
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn downcast_unchecked_ref<T>(&self) -> &T where T: Any
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is<T>(&self) -> bool where T: Any
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
fn type_id(&self) -> TypeId
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn try_as_dyn<T, U>(t: &T) -> Option<&U> where T: Any + 'static + ?Sized, U: Pointee<Metadata = DynMetadata<U>> + 'static + ?Sized
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn try_as_dyn_mut<T, U>(t: &mut T) -> Option<&mut U> where T: Any + 'static + ?Sized, U: Pointee<Metadata = DynMetadata<U>> + 'static + ?Sized
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn type_name<T>() -> &'static str where T: ?Sized
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn type_name_of_val<T>(_val: &T) -> &'static str where T: ?Sized
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct TypeId
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn field(self, variant_index: usize, field_index: usize) -> FieldId
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn fields(self, variant_index: usize) -> usize
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn info(self) -> Type
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn of<T>() -> TypeId where T: 'static + ?Sized
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn size(self) -> Option<usize>
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trait_info_of<T>(self) -> Option<TraitImpl<T>> where T: Pointee<Metadata = DynMetadata<T>> + 'static + ?Sized
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trait_info_of_trait_type_id( self, trait_represented_by_type_id: TypeId, ) -> Option<TraitImpl<*const ()>>
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn variants(self) -> usize
std::anySource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.