wgpu_core/hash_utils.rs
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.
6pub type FastHashMap<K, V> =
7 hashbrown::HashMap<K, V, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
8/// HashSet using a fast, non-cryptographic hash algorithm.
9pub type FastHashSet<K> =
10 hashbrown::HashSet<K, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
11
12/// IndexMap using a fast, non-cryptographic hash algorithm.
13pub type FastIndexMap<K, V> =
14 indexmap::IndexMap<K, V, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;