Struct colosseum::AtomicArena
[−]
[src]
pub struct AtomicArena<T> { /* fields omitted */ }
A thread-safe arena.
Methods
impl<T> AtomicArena<T>
[src]
fn new() -> AtomicArena<T>
Create a new AtomicArena
with a default size of approximately 1024 bytes.
fn with_capacity(n: usize) -> AtomicArena<T>
Create a new AtomicArena
with enough capacity for at least n
T
s without
a reallocation.
fn alloc(&self, t: T) -> &mut T
Allocate a single object in the arena.
fn alloc_extend<I: Iterator<Item = T>>(&self, iterable: I) -> &mut [T]
Allocate an arbitrary number of objects in the arena.