pub struct FxRandomState { /* private fields */ }Expand description
FxRandomState is an alternative state for HashMap types.
A particular instance FxRandomState will create the same instances of
[Hasher], but the hashers created by two different FxRandomState
instances are unlikely to produce the same result for the same values.
Implementations§
Source§impl FxRandomState
impl FxRandomState
Sourcepub fn new() -> FxRandomState
pub fn new() -> FxRandomState
Constructs a new FxRandomState that is initialized with random seed.
Trait Implementations§
Source§impl BuildHasher for FxRandomState
impl BuildHasher for FxRandomState
Source§impl Clone for FxRandomState
impl Clone for FxRandomState
Source§fn clone(&self) -> FxRandomState
fn clone(&self) -> FxRandomState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FxRandomState
impl RefUnwindSafe for FxRandomState
impl Send for FxRandomState
impl Sync for FxRandomState
impl Unpin for FxRandomState
impl UnwindSafe for FxRandomState
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