Type Alias DefaultHashBuilder

pub type DefaultHashBuilder = RandomState;
Expand description

The default BuildHasher used by HashMap and HashSet.

See the module documentation for more information on the default hasher.

Aliased Type§

pub struct DefaultHashBuilder { /* 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

Trait Implementations

§

impl BuildHasher for RandomState

§

type Hasher = FoldHasher

Type of the hasher that will be created.
§

fn build_hasher(&self) -> FoldHasher

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 RandomState

§

fn clone(&self) -> RandomState

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 Debug for RandomState

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for RandomState

§

fn default() -> RandomState

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

impl Copy for RandomState