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

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

Traits

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