pub type DashMap<K, V> = RawDashMap<K, V, BuildHasherDefault<AxHasher>>;Expand description
Drop-in dashmap::DashMap with AxHasher as the default hasher.
Use this alias when maximum third-party compatibility matters (e.g. Serde
#[derive]). All DashMap methods are available directly.
use axhash_dashmap::{DashMap, AxHasher};
use core::hash::BuildHasherDefault;
let map: DashMap<&str, u32> =
dashmap::DashMap::with_hasher(BuildHasherDefault::<AxHasher>::default());
map.insert("hello", 42);
assert_eq!(*map.get("hello").unwrap(), 42);Aliased Typeยง
pub struct DashMap<K, V> { /* private fields */ }