[][src]Struct inject::Container

pub struct Container { /* fields omitted */ }

Implementations

impl Container[src]

pub fn new() -> Container[src]

pub fn install<T: Inject, P: 'static + Provider<ProvidedType = T>>(
    &mut self,
    provider: P
)
[src]

pub fn install_ref<T: Inject, P: 'static + RefProvider<ProvidedRef = T>>(
    &mut self,
    provider: P
)
[src]

pub fn get<T: Inject>(&self) -> Result<T, InjectError>[src]

pub fn get_ref<T: 'static>(&self) -> Result<&T, InjectError>[src]

Trait Implementations

impl Debug for Container[src]

impl Default for Container[src]

Auto Trait Implementations

impl !RefUnwindSafe for Container

impl !Send for Container

impl !Sync for Container

impl Unpin for Container

impl !UnwindSafe for Container

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Inject for T where
    T: 'static, 
[src]

impl<T> InjectExt for T where
    T: Inject + Default
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.