pub trait Alloc {
    // Required methods
    fn alloc(&mut self, layout: Layout) -> Result<u64, AllocErr>;
    fn dealloc(&mut self, addr: u64, layout: Layout);
}
Expand description

Based loosely on the unstable std::alloc::Alloc trait

Required Methods§

source

fn alloc(&mut self, layout: Layout) -> Result<u64, AllocErr>

source

fn dealloc(&mut self, addr: u64, layout: Layout)

Implementors§