Trait xalloc::arena::Arena

source ·
pub trait Arena<T>: UnsafeArena<T> {
    fn get(&self, ptr: &Self::Ptr) -> Option<&T>;
    fn get_mut(&mut self, ptr: &Self::Ptr) -> Option<&mut T>;
    fn remove(&mut self, ptr: &Self::Ptr) -> Option<T>;
}
Expand description

Memory-safe homogeneous memory arena types.

Required Methods

Get a reference to a contained value.

Get a mutable reference to a contained value.

Remove a value from the arena.

Returns the removed value.

Implementors