[−][src]Struct simpledi_rs::di::DIContainer
DIContainer, a singleton container manages all DI managed objects
Trait Implementations
impl DIContainerTrait for DIContainer
[src]
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]
T: 'static + Debug,
pub fn get<T>(&self) -> Option<&T> where
T: 'static + Debug,
[src]
T: 'static + Debug,
pub fn get_mut<T>(&mut self) -> Option<&mut T> where
T: 'static + Debug,
[src]
T: 'static + Debug,
impl Debug for DIContainer
[src]
impl Send for DIContainer
[src]
impl Sync for DIContainer
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DIContainer
[src]
impl Unpin for DIContainer
[src]
impl !UnwindSafe for DIContainer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,