pub struct FxRandomState { /* private fields */ }Available on crate feature
map only.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§fn build_hasher(&self) -> <FxRandomState as BuildHasher>::Hasher
fn build_hasher(&self) -> <FxRandomState as BuildHasher>::Hasher
Creates a new hasher. Read more
Source§impl Clone for FxRandomState
impl Clone for FxRandomState
Source§fn clone(&self) -> FxRandomState
fn clone(&self) -> FxRandomState
Returns a copy 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 moreSource§impl Default for FxRandomState
impl Default for FxRandomState
Source§fn default() -> FxRandomState
fn default() -> FxRandomState
Returns the “default value” for a type. Read more
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes