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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.