1#[cfg(feature = "hashbrown")]
5pub extern crate hashbrown;
6
7pub mod arena {
9 #[allow(unused_imports)]
10 use crate::allocators::Arena;
11
12 #[cfg(feature = "hashbrown")]
14 pub type HashMap<'alloc, K, V, S = rustc_hash::FxBuildHasher> =
15 hashbrown::HashMap<K, V, S, &'alloc Arena>;
16
17 #[cfg(feature = "hashbrown")]
19 pub type HashSet<'alloc, T, S = rustc_hash::FxBuildHasher> =
20 hashbrown::HashSet<T, S, &'alloc Arena>;
21
22 }
28
29pub mod scoped {
31
32 #[allow(unused_imports)]
33 use crate::allocators::Scoped;
34
35 #[cfg(feature = "hashbrown")]
37 pub type HashMap<'alloc, K, V, S = rustc_hash::FxBuildHasher> =
38 hashbrown::HashMap<K, V, S, Scoped>;
39
40 #[cfg(feature = "hashbrown")]
42 pub type HashSet<'alloc, T, S = rustc_hash::FxBuildHasher> = hashbrown::HashSet<T, S, Scoped>;
43}
44
45pub mod global {
47
48 #[cfg(feature = "hashbrown")]
50 pub type HashMap<K, V, S = rustc_hash::FxBuildHasher> = hashbrown::HashMap<K, V, S>;
51
52 #[cfg(feature = "hashbrown")]
54 pub type HashSet<T, S = rustc_hash::FxBuildHasher> = hashbrown::HashSet<T, S>;
55}