Crates.io | idalloc |
lib.rs | idalloc |
version | 0.1.1 |
source | src |
created_at | 2020-02-18 18:06:08.812746 |
updated_at | 2020-02-18 18:09:29.229066 |
description | A library for different methods of allocating unique identifiers efficiently. |
homepage | https://github.com/udoprog/idalloc |
repository | https://github.com/udoprog/idalloc |
max_upload_size | |
id | 210384 |
size | 20,305 |
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);