Trait FrameAllocator

Source
trait FrameAllocator {
    // Required methods
    fn new() -> Self;
    fn alloc(&mut self) -> Option<PhysPageNum>;
    fn dealloc(&mut self, ppn: PhysPageNum);
}

Required Methods§

Source

fn new() -> Self

Source

fn alloc(&mut self) -> Option<PhysPageNum>

Source

fn dealloc(&mut self, ppn: PhysPageNum)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§