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