[−][src]Struct xmas_elf::ElfFile
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]
&self,
index: u16
) -> Result<SectionHeader<'a>, &'static str>
ⓘImportant traits for SectionIter<'b, 'a>pub fn section_iter<'b>(&'b self) -> SectionIter<'b, 'a>
[src]
ⓘImportant traits for SectionIter<'b, 'a>
pub fn program_header(
&self,
index: u16
) -> Result<ProgramHeader<'a>, &'static str>
[src]
&self,
index: u16
) -> Result<ProgramHeader<'a>, &'static str>
ⓘImportant traits for ProgramIter<'b, 'a>pub fn program_iter<'b>(&'b self) -> ProgramIter<'b, 'a>
[src]
ⓘImportant traits for ProgramIter<'b, 'a>
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]
fn get_gnu_buildid(&self) -> Option<&'a [u8]>
[src]
fn get_gnu_debuglink(&self) -> Option<(&'a str, u32)>
[src]
impl<'a> Debug for ElfFile<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,