Struct trove::Arena[][src]

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

An arena that can hold values of type T.

Methods

impl<T: Clone> Arena<T>
[src]

Creates a new empty arena.

Merges two Arenas into one, in which all nodes reachable from a and b are reachable

Get a reference into the arena.

Panics on out-of bound access.

Get a mutable reference into the arena. Panics if aliased, through a RefCell wrapper

Puts a value into the arena, returning an index

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Returns the "default value" for a type. Read more

impl<T> Debug for Arena<T> where
    T: Debug
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> !Send for Arena<T>

impl<T> !Sync for Arena<T>