Trait mz_ore::id_gen::IdAllocatorInner
source · pub trait IdAllocatorInner: Debug + Send {
const NAME: &'static str;
// Required methods
fn new(min: u32, max: u32, mask: u32) -> Self;
fn alloc(&mut self) -> Option<u32>;
fn remove(&mut self, id: u32);
}
Expand description
Common trait for id allocators.
Required Associated Constants§
Required Methods§
Object Safety§
This trait is not object safe.