Struct arena::TypedArena [] [src]

pub struct TypedArena<T> { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private)

An arena that can hold objects of only one type.

Methods

impl<T> TypedArena<T>
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

Creates a new TypedArena.

🔬 This is a nightly-only experimental API. (rustc_private)

Allocates an object in the TypedArena, returning a reference to it.

🔬 This is a nightly-only experimental API. (rustc_private)

Allocates a slice of objects that are copy into the TypedArena, returning a mutable reference to it. Will panic if passed a zero-sized types.

Panics: - Zero-sized types - Zero-length slices

🔬 This is a nightly-only experimental API. (rustc_private)

Clears the arena. Deallocates all but the longest chunk which may be reused.

Trait Implementations

impl<T> Drop for TypedArena<T>
[src]

A method called when the value goes out of scope. Read more

impl<T: Send> Send for TypedArena<T>
[src]