Crate fixed_pool

Source
Expand description

fixed_pool implements an object pool with a fixed number of items. The items may be borrowed without lifetime restrictions, are automatically returned to the pool upon drop, and may have customized reset semantics through the use of a trait.

Structs§

FixedPool
Allows for borrowing from a fixed pool of recycled values.
NoopReset
Does nothing when resetting an object.
PoolBorrow
Represents an object which is borrowed from the fixed pool.

Traits§

Reset
Determines how an object is reset when it is returned to the pool.