Struct copy_arena::Arena [] [src]

pub struct Arena { /* fields omitted */ }

Holds the backing memory for allocated objects out of itself.

Actual allocation into the Arena happens via an Allocator returned from allocator().

Methods

impl Arena
[src]

Construct a new Arena. This does allocate an block of memory.

Construct a new Arena with the given initial capacity.

The chosen capacity does not limit the final size of the arena.

Construct an Allocator for this arena.

Get the number of bytes of memory that have been allocated in service of this arena. Not all of this capacity is necessarily useful, since asked-for memory may not perfectly fit in the underlying blocks allocated.

Trait Implementations

impl Debug for Arena
[src]

Formats the value using the given formatter.