Fast DoS-resistant hashmap based on MuseAir hash algorithm.
The output of the Hasher in this crate may vary depending on the version or the platform. It should only be used for in-memory maps.
Due to MuseAir is non-crypto, this crate should NOT be used for cryptographic purpose.
use musemap::{HashMap, HashMapExt};
let mut map = HashMap::new();
map.insert(1, 2);
map.insert(3, 4);
assert_eq!(map.get(&1), Some(&2));
assert_eq!(map.get(&3), Some(&4));