Trait alloc::boxed::BoxAnyUnstable
[-] [+]
[src]
pub trait BoxAny { fn downcast<T: 'static>(self) -> Result<Box<T>, Self>; }
Extension methods for an owning Any
trait object.
Required Methods
fn downcast<T: 'static>(self) -> Result<Box<T>, Self>
Returns the boxed value if it is of type T
, or
Err(Self)
if it isn't.