Debian Codegraph @

third_party/rust/wgpu-core/src/hash_utils.rs

raw
1 //! Module for hashing utilities.
2 //!
3 //! Named hash_utils to prevent clashing with the core::hash module.
4
5 /// HashMap using a fast, non-cryptographic hash algorithm.
6 pub type FastHashMap<K, V> =
7 hashbrown::HashMap<K, V, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
8 /// HashSet using a fast, non-cryptographic hash algorithm.
9 pub type FastHashSet<K> =
10 hashbrown::HashSet<K, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
11
12 /// IndexMap using a fast, non-cryptographic hash algorithm.
13 pub type FastIndexMap<K, V> =
14 indexmap::IndexMap<K, V, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;