Trait tm_wheel::SlabAllocator
source · pub trait SlabAllocator<T> {
// Required methods
fn insert(&mut self, value: T) -> u32;
fn remove(&mut self, key: u32) -> T;
fn get(&self, key: u32) -> Option<&T>;
fn get_mut(&mut self, key: u32) -> Option<&mut T>;
fn clear(&mut self);
fn len(&self) -> usize;
// Provided methods
fn reserve(&mut self, additional: usize) { ... }
fn is_empty(&self) -> bool { ... }
}
Expand description
A backend allocator for TimerDriverBase
.