Trait as_any::Downcast[][src]

pub trait Downcast: AsAny {
    fn is<T>(&self) -> bool
    where
        T: AsAny
, { ... }
fn downcast_ref<T>(&self) -> Option<&T>
    where
        T: AsAny
, { ... }
fn downcast_mut<T>(&mut self) -> Option<&mut T>
    where
        T: AsAny
, { ... }
unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T { ... }
unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T { ... } }

Provided methods

Returns true if the boxed type is the same as T.

Forward to the method defined on the type Any.

Forward to the method defined on the type Any.

Forward to the method defined on the type Any.

Implementors