Skip to main content

DashSet

Type Alias DashSet 

Source
pub type DashSet<T> = RawDashSet<T, BuildHasherDefault<AxHasher>>;
Expand description

Drop-in dashmap::DashSet with AxHasher as the default hasher.

Use this alias when maximum third-party compatibility matters (e.g. Serde #[derive]). All DashSet methods are available directly.

use axhash_dashmap::{DashSet, AxHasher};
use core::hash::BuildHasherDefault;

let set: DashSet<u32> =
    dashmap::DashSet::with_hasher(BuildHasherDefault::<AxHasher>::default());
set.insert(1);
set.insert(2);
assert_eq!(set.len(), 2);

Aliased Typeยง

pub struct DashSet<T> { /* private fields */ }