Struct cranelift_entity::ListPool[][src]

pub struct ListPool<T: EntityRef> { /* fields omitted */ }

A memory pool for storing lists of T.

Methods

impl<T: EntityRef> ListPool<T>
[src]

Create a new list pool.

Clear the pool, forgetting about all lists that use it.

This invalidates any existing entity lists that used this pool to allocate memory.

The pool's memory is not released to the operating system, but kept around for faster allocation in the future.

Trait Implementations

impl<T: Clone + EntityRef> Clone for ListPool<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + EntityRef> Debug for ListPool<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for ListPool<T> where
    T: Send

impl<T> Sync for ListPool<T> where
    T: Sync