Trait alloc_no_stdlib::Allocator
[−]
[src]
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);
}
Associated Types
type AllocatedMemory: AllocatedSlice<T>
Required Methods
fn alloc_cell(&mut self, len: usize) -> Self::AllocatedMemory
fn free_cell(&mut self, data: Self::AllocatedMemory)
Implementors
impl<'a, T: 'a, U: AllocatedSlice<&'a mut [T]>> Allocator<T> for StackAllocator<'a, T, U>impl<T: Clone> Allocator<T> for HeapAlloc<T>