Trait alloc_stdlib::Allocator
source · [−]pub trait Allocator<T> {
type AllocatedMemory: AllocatedSlice<T>;
fn alloc_cell(&mut self, len: usize) -> Self::AllocatedMemory;
fn free_cell(&mut self, data: Self::AllocatedMemory);
}
Required Associated Types
source
type AllocatedMemory: AllocatedSlice<T>
Required Methods
source
fn alloc_cell(&mut self, len: usize) -> Self::AllocatedMemory
source