Struct mempool::Pool [] [src]

pub struct Pool<T: Send> { /* fields omitted */ }

A fast memory pool.

Methods

impl<T: Send> Pool<T>
[src]

Create a new memory pool with the given initialization function.

Get a reference to a new value from the pool. The underlying value may be reused in subsequent calls to get.

If one does not exist, then it is created with the initialization function.

Trait Implementations

impl<T: Send> Sync for Pool<T>
[src]

impl<T: Debug + Send + 'static> Debug for Pool<T>
[src]

Formats the value using the given formatter.