bones_utils/
collections.rs

1use fxhash::FxHasher;
2use std::hash::BuildHasherDefault;
3
4/// A [`HashMap`][hashbrown::HashMap] implementing aHash, a high
5/// speed keyed hashing algorithm intended for use in in-memory hashmaps.
6///
7/// aHash is designed for performance and is NOT cryptographically secure.
8pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<FxHasher>>;
9
10/// A [`HashSet`][hashbrown::HashSet] implementing aHash, a high
11/// speed keyed hashing algorithm intended for use in in-memory hashmaps.
12///
13/// aHash is designed for performance and is NOT cryptographically secure.
14pub type HashSet<K> = hashbrown::HashSet<K, BuildHasherDefault<FxHasher>>;