Type Alias FxHashMap
pub type FxHashMap<K, V> = HashMap<K, V, FxBuildHasher>;Expand description
Centralized compatibility shims for compiler API differences across nightly versions.
When a type or function moves between modules or changes interface across
rustc versions, add a re-export here (gated by #[cfg]). All other
modules import from this crate instead of writing their own #[cfg] blocks.
§How to add a new compat item
- Add a cfg flag in
build.rs(e.g.rustc_foo_moved). - Register it with
emit_check_cfginbuild.rs. - Add the re-export below.
- Update call-sites to
use crate::compat::Foo;. Type alias for a hash map that uses the Fx hashing algorithm.
Aliased Type§
pub struct FxHashMap<K, V> { /* private fields */ }