Skip to main content

Crate hislab

Crate hislab 

Source
Expand description

§HiSlab

A high-performance slab allocator using hierarchical bitmaps for O(1) operations.

§Example

use hislab::HiSlab;

let mut slab = HiSlab::new();

let idx = slab.insert(42);
assert_eq!(slab[idx], 42);

let val = slab.remove(idx);
assert_eq!(val, Some(42));
assert!(slab.get(idx).is_none());

Structs§

HiSlab
A slab allocator with O(1) insert and remove using hierarchical bitmaps.
SlabIntoIter
SlabIter
SlabIterMut