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§
- Fixed
Pool - Allows for borrowing from a fixed pool of recycled values.
- Noop
Reset - Does nothing when resetting an object.
- Pool
Borrow - 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.