pub struct Depends<T>where
T: Dependency,{ /* private fields */ }Expand description
A dependency that can be resolved at runtime
Implementations§
Source§impl<T: Dependency> Depends<T>
impl<T: Dependency> Depends<T>
Sourcepub fn with_value(value: T) -> Self
pub fn with_value(value: T) -> Self
Create a dependency with a static value
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Depends<T>
impl<T> !RefUnwindSafe for Depends<T>
impl<T> Send for Depends<T>
impl<T> Sync for Depends<T>
impl<T> Unpin for Depends<T>
impl<T> UnsafeUnpin for Depends<T>
impl<T> !UnwindSafe for Depends<T>
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