reth::primitives::revm_primitives::alloy_primitives::map

Crate rustc_hash

Available on crate feature map only.
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§

  • An implementation of BuildHasher that produces FxHashers.
  • 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.
  • FxRandomState is an alternative state for HashMap types.
  • [FxSetState] is an alternative state for HashMap types, allowing to use FxHasher with a set seed.

Type Aliases§