Trait downcast::Downcast
[−]
[src]
pub trait Downcast<T: Any + Sized>: Any { fn is_type(&self) -> bool; unsafe fn unchecked_downcast_ref(&self) -> &T; fn downcast_ref(&self) -> Option<&T>; unsafe fn unchecked_downcast_mut(&mut self) -> &mut T; fn downcast_mut(&mut self) -> Option<&mut T>; unsafe fn unchecked_downcast(self: Box<Self>) -> Box<T>; fn downcast(self: Box<Self>) -> Result<Box<T>, Box<Self>>; }