Crate reusable_id_pool
source ·Expand description
A pool for RAII IDs.
§Example
use reusable_id_pool::ReusableIdPool;
let reusable_id_pool = ReusableIdPool::new();
let id = reusable_id_pool.allocate();
// Do something with the `id`, like move it into a struct. It will be
// returned to the pool when it is dropped.
Structs§
- An RAII reference to an ID.
- A
std
-only ID pool that hands outArcId
s. - An ID pool that hands out
u64
s.
Enums§
- The error type for reusable ID pool operations.