pub struct Dep<T: ?Sized>(/* private fields */);Expand description
A dependency which can be automatically resolved at runtime by its unique type.
Implementations§
Trait Implementations§
Source§impl<T: ?Sized + 'static> FromTypeMap for Dep<T>
impl<T: ?Sized + 'static> FromTypeMap for Dep<T>
fn retrieve_from_map(tm: &TypeMap) -> Option<Self>
Auto Trait Implementations§
impl<T> Freeze for Dep<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Dep<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Dep<T>
impl<T> Sync for Dep<T>
impl<T> Unpin for Dep<T>where
T: ?Sized,
impl<T> UnwindSafe for Dep<T>where
T: RefUnwindSafe + ?Sized,
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