Module proc_macro::bridge::fxhash
source · 🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)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.
Structs
- FxHasherExperimentalA 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.
Constants
Type Definitions
- FxHashMapExperimentalType alias for a hashmap using the
fx
hash algorithm.