Struct block_pool::Pool[][src]

pub struct Pool<T> { /* fields omitted */ }
Expand description

Container for objects that can be taken out.

Implementations

Construct a new Pool with the items from the iterator.

Remove an item from the pool, this will take the “oldest” item.

The item will automatically get returned to the pool when the smart pointer is dropped.

There is no “resetting” that is common in other frameworks. You need to perform any resetting on your own.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.