[][src]Trait kamikaze_di::Injector

pub trait Injector<T>: Sealed {
    fn inject(&self) -> Result<T>;
}

Resolves dependencies automatically.

This trait allows the container to resolve some types without them having to be registered beforehand.

See the Inject trait for examples.

Required methods

fn inject(&self) -> Result<T>

Produces T.

Loading content...

Implementors

impl<T> Injector<Rc<T>> for Container where
    T: InjectAsRc + 'static, 
[src]

impl<T> Injector<T> for Container where
    T: Inject + Clone + 'static, 
[src]

impl<T> Injector<T> for Container where
    T: Clone + 'static, 
[src]

Loading content...