pub struct RngKey;Trait Implementations§
Source§impl DependencyKey for RngKey
impl DependencyKey for RngKey
type Value = RngDep
fn live() -> <RngKey as DependencyKey>::Value
Source§fn try_test() -> Result<<RngKey as DependencyKey>::Value, DependencyError>
fn try_test() -> Result<<RngKey as DependencyKey>::Value, DependencyError>
Fall back when no test double is registered for this key.
fn test() -> Self::Value
fn preview() -> Self::Value
fn register(values: &DependencyValues, value: Self::Value)
Auto Trait Implementations§
impl Freeze for RngKey
impl RefUnwindSafe for RngKey
impl Send for RngKey
impl Sync for RngKey
impl Unpin for RngKey
impl UnsafeUnpin for RngKey
impl UnwindSafe for RngKey
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