Expand description
Fallible, OOM-handling collections.
Modules§
- oom_
abort - Collections which abort on OOM.
Macros§
Structs§
- Entity
Set - Like
cranelift_entity::EntitySetbut enforces fallible allocation for all methods that allocate. - HashMap
- A wrapper type around [
hashbrown::hash_map::HashMap] that only exposes fallible allocation. - HashSet
- A wrapper type around [
hashbrown::hash_set::HashSet] that only exposes fallible allocation. - Index
Map - A wrapper around [
indexmap::IndexMap] that only provides fallible allocation. - Primary
Map - Like
cranelift_entity::PrimaryMapbut enforces fallible allocation for all methods that allocate. - Secondary
Map - Like
cranelift_entity::SecondaryMapbut all allocation is fallible. - String
- A newtype wrapper around
std::string::Stringthat only exposes fallible-allocation methods. - Vec
- Like
std::vec::Vecbut all methods that allocate force handling allocation failure.
Traits§
- TryClone
- A trait for values that can be cloned, but contain owned, heap-allocated values whose allocations may fail during cloning.
- TryCollect
- Extension trait for an
Iteratorto fallibly collect into a container. - TryExtend
- Analogue of
Extendexcept handles OOM conditions. - TryFrom
Iterator - Analogue of
FromIteratorin the standard library, but used withTryCollect::try_collectinstead. - TryNew
- Extension trait providing fallible allocation for types like
Arc<T>andBox<T>.
Functions§
- try_new
- Helper function to invoke
<T as TryNew>::try_new.