Trait main::kernel::mm::allocator::Allocator [collapse all] [expand all] [src]
pub trait Allocator { fn alloc(&mut self, size: uint) -> (*mut u8, uint); fn free(&mut self, ptr: *mut u8); fn zero_alloc(&mut self, s: uint) -> (*mut u8, uint) { ... } fn realloc(&mut self, src: *mut u8, size: uint) -> (*mut u8, uint) { ... } }
The allocator interface. Based on an unfinished RFC.