Trait boot_info::ElfSection

source ·
pub trait ElfSection {
    // Required methods
    fn name(&self) -> &str;
    fn start(&self) -> VirtualAddress;
    fn len(&self) -> usize;
    fn flags(&self) -> ElfSectionFlags;

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

Required Methods§

source

fn name(&self) -> &str

Returns the section’s name.

source

fn start(&self) -> VirtualAddress

Returns the section’s starting virtual address.

source

fn len(&self) -> usize

Returns the section’s length in memory, as opposed to its length in the ELF file.

source

fn flags(&self) -> ElfSectionFlags

Returns the section’s flags.

Provided Methods§

source

fn is_empty(&self) -> bool

Returns whether the section is empty.

Implementations on Foreign Types§

source§

impl ElfSection for ElfSection

source§

fn name(&self) -> &str

source§

fn start(&self) -> VirtualAddress

source§

fn len(&self) -> usize

source§

fn flags(&self) -> ElfSectionFlags

Implementors§