[][src]Struct symtool_backend::elf::SymtabIter

pub struct SymtabIter<'a> { /* fields omitted */ }

An iterator over an ELF symbol table.

Methods

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

pub fn from_section_header(
    bytes: &'a [u8],
    header: &SectionHeader,
    headers: &[SectionHeader],
    ctx: Ctx
) -> Result<Self>
[src]

Construct a SymtabIter from a section header.

Symbol tables are indicated by SHT_SYMTAB or SHT_DYNSYM section header types.

pub fn symtab_from_elf(bytes: &'a [u8], elf: &Elf) -> Result<Option<Self>>[src]

Construct a SymtabIter from an ELF binary's static symbol table.

The static symbol table is in the SHT_SYMTAB section.

pub fn dynsym_from_elf(bytes: &'a [u8], elf: &Elf) -> Result<Option<Self>>[src]

Construct a SymtabIter from an ELF binary's dynamic symbol table.

The dynamic symbol table is in the SHT_DYNSYM section.

Trait Implementations

impl<'a> Iterator for SymtabIter<'a>[src]

type Item = Result<(Option<Rooted<&'a str>>, Rooted<Sym>)>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> Send for SymtabIter<'a>

impl<'a> Sync for SymtabIter<'a>

impl<'a> Unpin for SymtabIter<'a>

impl<'a> UnwindSafe for SymtabIter<'a>

impl<'a> RefUnwindSafe for SymtabIter<'a>

Blanket Implementations

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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> 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]