pub struct HasherRng<H = RandomState> { /* private fields */ }
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)