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