wgpu_core/
hash_utils.rs

1//! Module for hashing utilities.
2//!
3//! Named hash_utils to prevent clashing with the std::hash module.
4
5/// HashMap using a fast, non-cryptographic hash algorithm.
6pub type FastHashMap<K, V> =
7    std::collections::HashMap<K, V, std::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
8/// HashSet using a fast, non-cryptographic hash algorithm.
9pub type FastHashSet<K> =
10    std::collections::HashSet<K, std::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, std::hash::BuildHasherDefault<rustc_hash::FxHasher>>;