Trait metafactory::AsFactoryExt [-]  [+] [src]

pub trait AsFactoryExt {
    fn as_factory_of<T>(self) -> Option<Factory<T>>;
    fn as_factory_clone_of<T>(&self) -> Option<Factory<T>>;
}

Downcast value to Factory.

Required Methods

fn as_factory_of<T>(self) -> Option<Factory<T>>

Downcast to factory and consume Box<Any>.

fn as_factory_clone_of<T>(&self) -> Option<Factory<T>>

Downcast to factory by creating factory clone.

Implementors