A library for different methods of allocating unique identifiers efficiently.
APACHE-2.0 License
A library for different methods of allocating unique identifiers efficiently.
Provided methods:
let mut alloc = idalloc::Slab::<u32>::new();
assert_eq!(0u32, alloc.next());
assert_eq!(1u32, alloc.next());
alloc.free(0u32);