pub trait Any: Any {
    // Provided method
    fn type_id_compat(&self) -> TypeId { ... }
}

Provided Methods§

fn type_id_compat(&self) -> TypeId

TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745

Trait Implementations§

§

impl<_T> Downcast<_T> for dyn Any + 'staticwhere _T: Any,

§

fn is_type(&self) -> bool

§

unsafe fn downcast_ref_unchecked(&self) -> &T

§

fn downcast_ref(&self) -> Result<&T, TypeMismatch>

§

unsafe fn downcast_mut_unchecked(&mut self) -> &mut T

§

fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>

§

unsafe fn downcast_unchecked(self: Box<Self, Global>) -> Box<T, Global>

§

fn downcast( self: Box<Self, Global> ) -> Result<Box<T, Global>, DowncastError<Box<Self, Global>>>

§

impl<_T> Downcast<_T> for dyn Any + Send + 'staticwhere _T: Any,

§

fn is_type(&self) -> bool

§

unsafe fn downcast_ref_unchecked(&self) -> &T

§

fn downcast_ref(&self) -> Result<&T, TypeMismatch>

§

unsafe fn downcast_mut_unchecked(&mut self) -> &mut T

§

fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>

§

unsafe fn downcast_unchecked(self: Box<Self, Global>) -> Box<T, Global>

§

fn downcast( self: Box<Self, Global> ) -> Result<Box<T, Global>, DowncastError<Box<Self, Global>>>

§

impl<_T> Downcast<_T> for dyn Any + Sync + 'staticwhere _T: Any,

§

fn is_type(&self) -> bool

§

unsafe fn downcast_ref_unchecked(&self) -> &T

§

fn downcast_ref(&self) -> Result<&T, TypeMismatch>

§

unsafe fn downcast_mut_unchecked(&mut self) -> &mut T

§

fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>

§

unsafe fn downcast_unchecked(self: Box<Self, Global>) -> Box<T, Global>

§

fn downcast( self: Box<Self, Global> ) -> Result<Box<T, Global>, DowncastError<Box<Self, Global>>>

§

impl<_T> Downcast<_T> for dyn Any + Sync + Send + 'staticwhere _T: Any,

§

fn is_type(&self) -> bool

§

unsafe fn downcast_ref_unchecked(&self) -> &T

§

fn downcast_ref(&self) -> Result<&T, TypeMismatch>

§

unsafe fn downcast_mut_unchecked(&mut self) -> &mut T

§

fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>

§

unsafe fn downcast_unchecked(self: Box<Self, Global>) -> Box<T, Global>

§

fn downcast( self: Box<Self, Global> ) -> Result<Box<T, Global>, DowncastError<Box<Self, Global>>>

Implementors§

§

impl<T> Any for Twhere T: Any + ?Sized,