Type Alias RapidHashMap

Source
pub type RapidHashMap<K, V> = HashMap<K, V, RapidBuildHasher>;
Expand description

A std::collections::HashMap type that uses the RapidBuildHasher hasher.

See crate::RapidInlineHashMap for an #[inline(always)] version of this type, which can deliver speed improvements of around 30% when hashing complex objects.

§Example

use rapidhash::RapidHashMap;
let mut map = RapidHashMap::default();
map.insert(42, "the answer");

// with capacity
let mut map = RapidHashMap::with_capacity_and_hasher(10, Default::default());
map.insert(42, "the answer");

Aliased Type§

pub struct RapidHashMap<K, V> { /* private fields */ }