Trait boot_info::Module

source ·
pub trait Module {
    // Required methods
    fn name(&self) -> Result<&str, &'static str>;
    fn start(&self) -> PhysicalAddress;
    fn len(&self) -> usize;

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

Required Methods§

source

fn name(&self) -> Result<&str, &'static str>

Returns the module’s name.

source

fn start(&self) -> PhysicalAddress

Returns the module’s starting physical address.

source

fn len(&self) -> usize

Returns the module’s length.

Provided Methods§

source

fn is_empty(&self) -> bool

Returns whether the module is empty.

Implementations on Foreign Types§

source§

impl<'a> Module for &'a ModuleTag

source§

fn name(&self) -> Result<&str, &'static str>

source§

fn start(&self) -> PhysicalAddress

source§

fn len(&self) -> usize

source§

fn is_empty(&self) -> bool

Implementors§