Module libreda_db::slab_alloc
source · [−]Expand description
Container with O(1)
insertion, lookup and remove operations.
Structs
Element 🔒
Container which efficiently allocates space for its elements.
Type Definitions
Slab allocator with 8-bit indices. Can hold at most 2^8 elements.
Slab allocator with 16-bit indices. Can hold at most 2^16 elements.
Slab allocator with 32-bit indices. Can hold at most 2^32 elements.
Slab allocator with 64-bit indices. Can hold at most 2^64 elements.
Slab allocator with n-bit indices. Can hold at most 2^n elements.
Where n
is the machine word size.