pub struct NewParser<'a> { /* private fields */ }
Expand description

The new ELF parser.

Trait Implementations§

source§

impl<'a> Debug for NewParser<'a>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a> ElfParser<'a> for NewParser<'a>

§

type ProgramHeader = Elf64Phdr

Program header type.
§

type ProgramHeaders = Iter<'a, <NewParser<'a> as ElfParser<'a>>::ProgramHeader>

Iterator of program headers.
§

type SectionHeader = Elf64Shdr

Section header type.
§

type SectionHeaders = Iter<'a, <NewParser<'a> as ElfParser<'a>>::SectionHeader>

Iterator of section headers
§

type Symbol = Elf64Sym

Symbol type.
§

type Symbols = Map<Iter<'a, <NewParser<'a> as ElfParser<'a>>::Symbol>, fn(_: &'a <NewParser<'a> as ElfParser<'a>>::Symbol) -> Cow<'a, <NewParser<'a> as ElfParser<'a>>::Symbol>>

Iterator of symbols.
§

type Relocation = Elf64Rel

Relocation type.
§

type Relocations = Map<Iter<'a, <NewParser<'a> as ElfParser<'a>>::Relocation>, fn(_: &'a <NewParser<'a> as ElfParser<'a>>::Relocation) -> Cow<'a, <NewParser<'a> as ElfParser<'a>>::Relocation>>

Iterator of relocations.
source§

fn parse(data: &'a [u8]) -> Result<NewParser<'a>, ElfError>

Parses the ELF data included in the buffer.
source§

fn header(&self) -> &Elf64Ehdr

Returns the file header.
source§

fn program_headers(&'a self) -> Self::ProgramHeaders

Returns the program headers.
source§

fn section_headers(&'a self) -> Self::SectionHeaders

Returns the section headers.
source§

fn section(&self, name: &[u8]) -> Result<Self::SectionHeader, ElfError>

Returns the section with the given name.
source§

fn section_name(&self, sh_name: Elf64Word) -> Option<&[u8]>

Returns the section name at the given sh_name offset.
source§

fn symbols(&'a self) -> Self::Symbols

Returns the symbols included in the symbol table.
source§

fn symbol_name(&self, st_name: Elf64Word) -> Option<&[u8]>

Returns the symbol name at the given st_name offset.
source§

fn dynamic_symbol(&self, index: Elf64Word) -> Option<Self::Symbol>

Returns the symbols included in the dynamic symbol table.
source§

fn dynamic_symbol_name(&self, st_name: Elf64Word) -> Option<&[u8]>

Returns the dynamic symbol name at the given st_name offset.
source§

fn dynamic_relocations(&'a self) -> Self::Relocations

Returns the dynamic relocations.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for NewParser<'a>

§

impl<'a> Send for NewParser<'a>

§

impl<'a> Sync for NewParser<'a>

§

impl<'a> Unpin for NewParser<'a>

§

impl<'a> UnwindSafe for NewParser<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V