Trait ioc::Factory [] [src]

pub trait Factory<Obj: FactoryObject> {
    type Args;
    type Error: Debug;
    fn create(&mut self, args: Self::Args) -> Result<Obj, Self::Error>;
}

Associated Types

type Args

type Error: Debug

Required Methods

fn create(&mut self, args: Self::Args) -> Result<Obj, Self::Error>

Implementors