Skip to main content

impl_hashmap_map_storage

Macro impl_hashmap_map_storage 

Source
macro_rules! impl_hashmap_map_storage {
    ($ty:ty) => { ... };
}
Expand description

Implement MapStorage for a HashMap-like type.

Both HashMap<usize, Entry> and FastHashMap (ahash) share the same API including the entry API for single-lookup decrement. This macro avoids duplicating the ~60-line impl for each hasher type.