blob: 22d4ee8c635419aea8d748fcea5f1c30cb5de7c0 (
plain)
1
2
3
4
5
6
7
|
pub trait Allocator<T> {
type AllocatedMemory : super::AllocatedSlice<T>;
fn alloc_cell(&mut self, len : usize) -> Self::AllocatedMemory;
fn free_cell(&mut self, data : Self::AllocatedMemory);
}
|