Struct typed_arena::Arena
[−]
[src]
pub struct Arena<T> { // some fields omitted }
Methods
impl<T> Arena<T>
[src]
fn new() -> Arena<T>
fn with_capacity(n: usize) -> Arena<T>
fn alloc(&self, value: T) -> &mut T
Allocates a value in the arena, and returns a mutable reference to that value.
fn alloc_extend<I>(&self, iter: I) -> &mut [T] where I: Iterator<Item=T> + ExactSizeIterator
Uses the contents of an iterator to allocate values in the arena. Returns a mutable slice that contains these values.
unsafe fn alloc_uninitialized(&self, num: usize) -> *mut [T]
Allocates space for a given number of values, but doesn't initialize it.
fn uninitialized_array(&self) -> *mut [T]
Returns unused space.