[][src]Struct xmas_elf::ElfFile

pub struct ElfFile<'a> {
    pub input: &'a [u8],
    pub header: Header<'a>,
}

Fields

input: &'a [u8]header: Header<'a>

Methods

impl<'a> ElfFile<'a>[src]

pub fn new(input: &'a [u8]) -> Result<ElfFile<'a>, &'static str>[src]

pub fn section_header(
    &self,
    index: u16
) -> Result<SectionHeader<'a>, &'static str>
[src]

Important traits for SectionIter<'b, 'a>
pub fn section_iter<'b>(&'b self) -> SectionIter<'b, 'a>[src]

pub fn program_header(
    &self,
    index: u16
) -> Result<ProgramHeader<'a>, &'static str>
[src]

Important traits for ProgramIter<'b, 'a>
pub fn program_iter<'b>(&'b self) -> ProgramIter<'b, 'a>[src]

pub fn get_shstr(&self, index: u32) -> Result<&'a str, &'static str>[src]

pub fn get_string(&self, index: u32) -> Result<&'a str, &'static str>[src]

pub fn get_dyn_string(&self, index: u32) -> Result<&'a str, &'static str>[src]

pub fn find_section_by_name(&self, name: &str) -> Option<SectionHeader<'a>>[src]

Trait Implementations

impl<'a> Extensions<'a> for ElfFile<'a>[src]

impl<'a> Debug for ElfFile<'a>[src]

Auto Trait Implementations

impl<'a> Send for ElfFile<'a>

impl<'a> Sync for ElfFile<'a>

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]