[][src]Trait xalloc::arena::Arena

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

Memory-safe homogeneous memory arena types.

Required methods

pub fn get(&self, ptr: &Self::Ptr) -> Option<&T>[src]

Get a reference to a contained value.

pub fn get_mut(&mut self, ptr: &Self::Ptr) -> Option<&mut T>[src]

Get a mutable reference to a contained value.

pub fn remove(&mut self, ptr: &Self::Ptr) -> Option<T>[src]

Remove a value from the arena.

Returns the removed value.

Loading content...

Implementors

impl<T> Arena<T> for CheckedArena<T>[src]

impl<T, A, P> Arena<T> for PooledArena<T, A, P> where
    A: UnsafeArena<Entry<T, P>, Ptr = P> + Arena<Entry<T, P>>,
    P: Clone + Default + PartialEq + Eq + Debug
[src]

Loading content...