Type Alias FxBuildHasher
pub type FxBuildHasher = FxRandomState;
Expand description
The FxHasher
hasher builder.
This is rustc_hash::FxBuildHasher
, unless both the “std” and “rand” features are
enabled, in which case it will be rustc_hash::FxRandomState
for better security at
very little cost.
Aliased Type§
pub struct FxBuildHasher { /* private fields */ }
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
Implementations
§impl FxRandomState
impl FxRandomState
pub fn new() -> FxRandomState
pub fn new() -> FxRandomState
Constructs a new FxRandomState
that is initialized with random seed.
Trait Implementations
§impl BuildHasher for FxRandomState
impl BuildHasher for FxRandomState
§fn build_hasher(&self) -> <FxRandomState as BuildHasher>::Hasher
fn build_hasher(&self) -> <FxRandomState as BuildHasher>::Hasher
Creates a new hasher. Read more
§impl Clone for FxRandomState
impl Clone for FxRandomState
§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 more§impl Default for FxRandomState
impl Default for FxRandomState
§fn default() -> FxRandomState
fn default() -> FxRandomState
Returns the “default value” for a type. Read more