Crate rustc_hash
Expand description
A speedy, non-cryptographic hashing algorithm used by rustc.
§Example
use rustc_hash::FxHashMap;
let mut map: FxHashMap<u32, u32> = FxHashMap::default();
map.insert(22, 44);Structs§
- FxBuild
Hasher - An implementation of
BuildHasherthat producesFxHashers. - FxHasher
- A speedy hash algorithm for use within rustc. The hashmap in liballoc by default uses SipHash which isn’t quite as speedy as we want. In the compiler we’re not really worried about DOS attempts, so we use a fast non-cryptographic hash.
- FxRandom
State FxRandomStateis an alternative state forHashMaptypes.- FxSeeded
State FxSeededStateis an alternative state forHashMaptypes, allowing to useFxHasherwith a set seed.
Type Aliases§
- FxHash
Map - Type alias for a hash map that uses the Fx hashing algorithm.
- FxHash
MapRand - Type alias for a hashmap using the
fxhash algorithm withFxRandomState. - FxHash
MapSeed - Type alias for a hashmap using the
fxhash algorithm withFxSeededState. - FxHash
Set - Type alias for a hash set that uses the Fx hashing algorithm.
- FxHash
SetRand - Type alias for a hashmap using the
fxhash algorithm withFxRandomState. - FxHash
SetSeed - Type alias for a hashmap using the
fxhash algorithm withFxSeededState.