apollo_compiler/collections.rs
1//! Type aliases for hashing-based collections configured with a specific hasher,
2//! as used in various places thorough the API
3
4/// [`indexmap::IndexMap`] configured with a specific hasher
5pub type IndexMap<K, V> = indexmap::IndexMap<K, V, ahash::RandomState>;
6
7/// [`indexmap::IndexSet`] configured with a specific hasher
8pub type IndexSet<T> = indexmap::IndexSet<T, ahash::RandomState>;
9
10/// [`std::collections::HashMap`] configured with a specific hasher
11pub type HashMap<K, V> = std::collections::HashMap<K, V, ahash::RandomState>;
12
13/// [`std::collections::HashSet`] configured with a specific hasher
14pub type HashSet<T> = std::collections::HashSet<T, ahash::RandomState>;