pub mod btree_map;
pub use btree_map::{BTreeMap, BTreeMapA};
pub mod btree_set;
pub use btree_set::{BTreeSet, BTreeSetA};
pub mod hash_map {
pub use hashbrown::hash_map::*;
}
pub use hash_map::HashMap as HashMapA;
pub type HashMap<K,V,H> = HashMapA<K,V,H,crate::alloc::Global>;
pub use hashbrown::DefaultHashBuilder;
pub mod hash_set {
pub use hashbrown::hash_set::*;
}
pub use hash_set::HashSet as HashSetA;
pub type HashSet<K,H> = HashSetA<K,H,crate::alloc::Global>;
mod merge_iter;
#[derive(Debug)]
pub struct TryReserveError {
pub(crate) kind: TryReserveErrorKind,
}
impl TryReserveError {
#[must_use]
pub fn kind(&self) -> TryReserveErrorKind {
self.kind.clone()
}
}
#[derive(Debug, Clone)]
pub enum TryReserveErrorKind {
CapacityOverflow,
AllocError {
layout: std::alloc::Layout,
},
}