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.