pub struct SingletonContainer<T>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<T> Container for SingletonContainer<T>
impl<T> Container for SingletonContainer<T>
Source§impl<T: Debug> Debug for SingletonContainer<T>
impl<T: Debug> Debug for SingletonContainer<T>
Source§impl<'a, T, Deps> ResolveContainer<'a, &'a T, Deps> for SingletonContainer<T>where
T: Dependency<Deps> + 'a,
impl<'a, T, Deps> ResolveContainer<'a, &'a T, Deps> for SingletonContainer<T>where
T: Dependency<Deps> + 'a,
fn resolve_container<F: Fn() -> Deps>(ct: &'a Self, get_deps: F) -> &'a T
Auto Trait Implementations§
impl<T> !Freeze for SingletonContainer<T>
impl<T> RefUnwindSafe for SingletonContainer<T>where
T: RefUnwindSafe + UnwindSafe,
impl<T> Send for SingletonContainer<T>where
T: Send,
impl<T> Sync for SingletonContainer<T>
impl<T> Unpin for SingletonContainer<T>where
T: Unpin,
impl<T> UnwindSafe for SingletonContainer<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more