pub struct HasherRng<H = RandomState> { /* private fields */ }
Available on crate feature
util
only.Expand description
A Rng
implementation that uses a Hasher
to generate the random
values. The implementation uses an internal counter to pass to the hasher
for each iteration of Rng::next_u64
.
§Default
This hasher has a default type of RandomState
which just uses the
libstd method of getting a random u64.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for HasherRng<H>where
H: Freeze,
impl<H> RefUnwindSafe for HasherRng<H>where
H: RefUnwindSafe,
impl<H> Send for HasherRng<H>where
H: Send,
impl<H> Sync for HasherRng<H>where
H: Sync,
impl<H> Unpin for HasherRng<H>where
H: Unpin,
impl<H> UnwindSafe for HasherRng<H>where
H: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.