swc_allocator/api/
mod.rs
#[cfg(feature = "hashbrown")]
pub extern crate hashbrown;
pub mod arena {
#[allow(unused_imports)]
use crate::allocators::Arena;
#[cfg(feature = "hashbrown")]
pub type HashMap<'alloc, K, V, S = rustc_hash::FxBuildHasher> =
hashbrown::HashMap<K, V, S, &'alloc Arena>;
#[cfg(feature = "hashbrown")]
pub type HashSet<'alloc, T, S = rustc_hash::FxBuildHasher> =
hashbrown::HashSet<T, S, &'alloc Arena>;
}
pub mod scoped {
#[allow(unused_imports)]
use crate::allocators::Scoped;
#[cfg(feature = "hashbrown")]
pub type HashMap<'alloc, K, V, S = rustc_hash::FxBuildHasher> =
hashbrown::HashMap<K, V, S, Scoped>;
#[cfg(feature = "hashbrown")]
pub type HashSet<'alloc, T, S = rustc_hash::FxBuildHasher> = hashbrown::HashSet<T, S, Scoped>;
}
pub mod global {
#[cfg(feature = "hashbrown")]
pub type HashMap<K, V, S = rustc_hash::FxBuildHasher> = hashbrown::HashMap<K, V, S>;
#[cfg(feature = "hashbrown")]
pub type HashSet<T, S = rustc_hash::FxBuildHasher> = hashbrown::HashSet<T, S>;
}