Path: blob/main/crates/environ/src/collections.rs
3054 views
//! Fallible, OOM-handling collections.12mod entity_set;3mod hash_map;4mod hash_set;5mod primary_map;6mod secondary_map;78pub use entity_set::EntitySet;9pub use hash_map::HashMap;10pub use hash_set::HashSet;11pub use primary_map::PrimaryMap;12pub use secondary_map::SecondaryMap;13pub use wasmtime_core::alloc::{String, TryClone, TryNew, Vec, try_new};1415/// Collections which abort on OOM.16//17// FIXME(#12069) this is just here for Wasmtime at this time. Ideally18// collections would only be fallible in this module and would handle OOM. We're19// in a bit of a transition period though.20pub mod oom_abort {21#[cfg(not(feature = "std"))]22pub use hashbrown::{hash_map, hash_set};23#[cfg(feature = "std")]24pub use std::collections::{hash_map, hash_set};2526pub use self::hash_map::HashMap;27pub use self::hash_set::HashSet;28}293031