Struct elf::File [] [src]

pub struct File {
    pub ehdr: FileHeader,
    pub phdrs: Vec<ProgramHeader>,
    pub sections: Vec<Section>,
}

Fields

ehdr: FileHeader phdrs: Vec<ProgramHeader> sections: Vec<Section>

Methods

impl File
[src]

fn open_path<T: AsRef<Path>>(path: T) -> Result<FileParseError>

fn open_stream<T: Read + Seek>(io_file: &mut T) -> Result<FileParseError>

fn get_section<T: AsRef<str>>(&self, name: T) -> Option<&Section>

fn new() -> File

Trait Implementations

impl Debug for File
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for File
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.