idalloc 0.1.0

A library for different methods of allocating unique identifiers efficiently.
Documentation

idalloc

Documentation Crates Actions Status

General purpose algorithms to generate unique identifiers.

Examples

let mut alloc = idalloc::Slab::<u32>::new();
assert_eq!(0u32, alloc.next());
assert_eq!(1u32, alloc.next());
alloc.free(0u32);