Skip to main content

Module collections

Module collections 

Source
Expand description

Fallible, OOM-handling collections.

Structs§

EntitySet
Like cranelift_entity::EntitySet but enforces fallible allocation for all methods that allocate.
PrimaryMap
Like cranelift_entity::PrimaryMap but enforces fallible allocation for all methods that allocate.
SecondaryMap
Like cranelift_entity::SecondaryMap but all allocation is fallible.
Vec
Like std::vec::Vec but all methods that allocate force handling allocation failure.

Traits§

TryNew
Extension trait providing fallible allocation for types like Arc<T> and Box<T>.

Functions§

try_new
Helper function to invoke <T as TryNew>::try_new.