mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Dependencies on `std` that still exist: * Locks * `std::error::Error` (waiting for Rust 1.81) * `std::os::raw::c_char` for FFI * `thread_local` and `Backtrace` in `snatch`
15 lines
624 B
Rust
15 lines
624 B
Rust
//! Module for hashing utilities.
|
|
//!
|
|
//! Named hash_utils to prevent clashing with the core::hash module.
|
|
|
|
/// HashMap using a fast, non-cryptographic hash algorithm.
|
|
pub type FastHashMap<K, V> =
|
|
hashbrown::HashMap<K, V, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
|
|
/// HashSet using a fast, non-cryptographic hash algorithm.
|
|
pub type FastHashSet<K> =
|
|
hashbrown::HashSet<K, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
|
|
|
|
/// IndexMap using a fast, non-cryptographic hash algorithm.
|
|
pub type FastIndexMap<K, V> =
|
|
indexmap::IndexMap<K, V, core::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
|