[][src]Trait vessels::reflect::Cast

pub trait Cast<T: ?Sized + Reflected> {
    fn downcast(self) -> Result<Box<T>, CastError>;
fn upcast(self) -> Result<Box<T>, CastError>; }

Required methods

fn downcast(self) -> Result<Box<T>, CastError>

fn upcast(self) -> Result<Box<T>, CastError>

Loading content...

Implementations on Foreign Types

impl<S: ?Sized + Reflected> Cast<S> for Box<dyn Erased>[src]

impl<T: ?Sized + Reflected + Trait<T>, S: ?Sized + Reflected> Cast<S> for Box<T>[src]

Loading content...

Implementors

Loading content...