pub type RapidHashSet<K> = HashSet<K, RapidBuildHasher>;
Expand description
A std::collections::HashSet type that uses the RapidBuildHasher hasher.
See crate::RapidInlineHashSet for an #[inline(always)]
version of this type, which can
deliver speed improvements of around 30% when hashing complex objects.
§Example
use rapidhash::RapidHashSet;
let mut set = RapidHashSet::default();
set.insert("the answer");
// with capacity
let mut set = RapidHashSet::with_capacity_and_hasher(10, Default::default());
set.insert("the answer");
Aliased Type§
pub struct RapidHashSet<K> { /* private fields */ }