[][src]Trait simpledi_rs::di::DIContainerTrait

pub trait DIContainerTrait {
    pub fn new() -> Self;
pub fn init(self) -> Result<Arc<Self>>;
pub fn add<T>(&mut self, obj: T) -> Result<&mut T>
    where
        T: 'static + Debug
;
pub fn get<T>(&self) -> Option<&T>
    where
        T: 'static + Debug
;
pub fn get_mut<T>(&mut self) -> Option<&mut T>
    where
        T: 'static + Debug
; }

Required methods

pub fn new() -> Self[src]

pub fn init(self) -> Result<Arc<Self>>[src]

pub fn add<T>(&mut self, obj: T) -> Result<&mut T> where
    T: 'static + Debug
[src]

pub fn get<T>(&self) -> Option<&T> where
    T: 'static + Debug
[src]

pub fn get_mut<T>(&mut self) -> Option<&mut T> where
    T: 'static + Debug
[src]

Loading content...

Implementors

impl DIContainerTrait for DIContainer[src]

Loading content...