pub trait IArena<T> {
// Required methods
fn alloc(&mut self, value: T) -> Idx<T>;
fn free(&mut self, id: Idx<T>) -> T;
fn get(&self, id: Idx<T>) -> &T;
fn get_mut(&mut self, id: Idx<T>) -> &mut T;
}Expand description
Arena for allocating and managing items.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".