Trait alloc::owned::AnyOwnExt[src]

pub trait AnyOwnExt {
    fn move<T: 'static>(self) -> Result<Box<T>, Self>;
}

Extension methods for an owning Any trait object

Required Methods

fn move<T: 'static>(self) -> Result<Box<T>, Self>

Returns the boxed value if it is of type T, or Err(Self) if it isn't.

Implementors