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

pub fn new() -> FxRandomState

Constructs a new FxRandomState that is initialized with random seed.

Trait Implementations

§

impl BuildHasher for FxRandomState

§

type Hasher = FxHasher

Type of the hasher that will be created.
§

fn build_hasher(&self) -> <FxRandomState as BuildHasher>::Hasher

Creates a new hasher. Read more
1.71.0 · Source§

fn hash_one<T>(&self, x: T) -> u64
where T: Hash, Self: Sized, Self::Hasher: Hasher,

Calculates the hash of a single value. Read more
§

impl Clone for FxRandomState

§

fn clone(&self) -> FxRandomState

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Default for FxRandomState

§

fn default() -> FxRandomState

Returns the “default value” for a type. Read more