pub trait MemoryRegion {
    // Required methods
    fn start(&self) -> PhysicalAddress;
    fn len(&self) -> usize;
    fn is_usable(&self) -> bool;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}

Required Methods§

source

fn start(&self) -> PhysicalAddress

Returns the region’s starting physical address.

source

fn len(&self) -> usize

Returns the region’s length.

source

fn is_usable(&self) -> bool

Returns whether the region can be used by the frame allocator.

Provided Methods§

source

fn is_empty(&self) -> bool

Returns whether the region is empty.

Implementations on Foreign Types§

source§

impl<'a> MemoryRegion for &'a MemoryArea

source§

fn start(&self) -> PhysicalAddress

source§

fn len(&self) -> usize

source§

fn is_usable(&self) -> bool

Implementors§