Struct hv_stampede::BumpPool[][src]

pub struct BumpPool { /* fields omitted */ }
Expand description

A thread-safe pool of Bumps (provided as PooledBumps). Internally, this is two pools; the “ready” pool of Bumps which do not yet have any objects tied to their lifetimes, and the “shunned” pool of Bumps which were detached using PooledBump::detach and must not be allocated from or destroyed until the entire pool is .reset().

Implementations

Create an empty BumpPool.

Reset the BumpPool, returning any “shunned” allocators to the “ready” pool and resetting all pooled allocators.

Get a Bump from the pool, or allocate a new Bump if the pool is empty.

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.