Struct colosseum::Arena [] [src]

pub struct Arena<T> { /* fields omitted */ }

A simple arena allocator.

Methods

impl<T> Arena<T>
[src]

Create a new Arena with a default size of approximately 1024 bytes.

Create a new Arena with enough capacity for at least n Ts without a reallocation.

Allocate a single object in the arena.

Allocate an arbitrary number of objects in the arena.