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§

fn name(&self) -> &str

Returns the section’s name.

fn start(&self) -> VirtualAddress

Returns the section’s starting virtual address.

fn len(&self) -> usize

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

fn flags(&self) -> ElfSectionFlags

Returns the section’s flags.

Provided Methods§

fn is_empty(&self) -> bool

Returns whether the section is empty.

Implementations on Foreign Types§

§

impl ElfSection for ElfSection

§

fn name(&self) -> &str

§

fn start(&self) -> VirtualAddress

§

fn len(&self) -> usize

§

fn flags(&self) -> ElfSectionFlags

Implementors§