[][src]Struct metagoblin::elf::sym::sym32::Symtab

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

An ELF symbol table, allowing lazy iteration over symbols

Implementations

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

pub fn parse(
    bytes: &'a [u8],
    offset: usize,
    count: usize,
    ctx: Ctx
) -> Result<Symtab<'a>, Error>
[src]

Parse a table of count ELF symbols from offset.

pub fn get(&self, index: usize) -> Option<Sym>[src]

Try to parse a single symbol from the binary, at index.

pub fn len(&self) -> usize[src]

The number of symbols in the table.

pub fn is_empty(&self) -> bool[src]

Returns true if table has no symbols.

pub fn iter(&self) -> SymIterator<'a>

Notable traits for SymIterator<'a>

impl<'a> Iterator for SymIterator<'a> type Item = Sym;
[src]

Iterate over all symbols.

pub fn to_vec(&self) -> Vec<Sym, Global>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

Parse all symbols into a vector.

Trait Implementations

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

impl<'a> Default for Symtab<'a>[src]

impl<'a, 'b> IntoIterator for &'b Symtab<'a>[src]

type Item = <SymIterator<'a> as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = SymIterator<'a>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'a> RefUnwindSafe for Symtab<'a>

impl<'a> Send for Symtab<'a>

impl<'a> Sync for Symtab<'a>

impl<'a> Unpin for Symtab<'a>

impl<'a> UnwindSafe for Symtab<'a>

Blanket Implementations

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

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

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

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

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

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.