π¬This is a nightly-only experimental API. (
proc_macro_internals)Expand description
This is a copy of the rustc_hash crate, adapted to work as a module.
If in the future it becomes more reasonable to add dependencies to
proc_macro, this module should be removed and replaced with a dependency
on the rustc_hash crate.
Re-exportsΒ§
use std::collections::HashMap;πuse std::hash::BuildHasherDefault;πuse std::hash::Hasher;πuse std::ops::BitXor;π
StructsΒ§
- FxHasher π
Experimental - A speedy hash algorithm for use within rustc. The hashmap in alloc 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.
Type AliasesΒ§
- FxHash
Map πExperimental - Type alias for a hashmap using the
fxhash algorithm.