pub struct FxSeededState { /* private fields */ }
Expand description

[FxSetState] is an alternative state for HashMap types, allowing to use FxHasher with a set seed.

use rustc_hash::FxSeededState;

let mut map = HashMap::with_hasher(FxSeededState::with_seed(12));
map.insert(15, 610);
assert_eq!(map[&15], 610);

Implementations

Constructs a new FxSeededState that is initialized with a seed.

Trait Implementations

Type of the hasher that will be created.
Creates a new hasher. Read more
🔬This is a nightly-only experimental API. (build_hasher_simple_hash_one)
Calculates the hash of a single value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.