cactusref 0.5.0

Cycle-aware reference counting smart pointer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(clippy::module_name_repetitions)]

use core::hash::BuildHasherDefault;

use rustc_hash::FxHasher;

pub type HashMap<K, V> = hashbrown::HashMap<K, V, BuildHasherDefault<FxHasher>>;
pub type HashSet<T> = hashbrown::HashSet<T, BuildHasherDefault<FxHasher>>;

pub mod hash_map {
    use hashbrown::hash_map;

    pub type Iter<'a, K, V> = hash_map::Iter<'a, K, V>;
    pub type ExtractIf<'a, K, V, F> = hash_map::ExtractIf<'a, K, V, F>;
}