Trait object::read::ObjectSymbolTable[][src]

pub trait ObjectSymbolTable<'data>: Sealed {
    type Symbol: ObjectSymbol<'data>;
    type SymbolIterator: Iterator<Item = Self::Symbol>;
    fn symbols(&self) -> Self::SymbolIterator;
fn symbol_by_index(&self, index: SymbolIndex) -> Result<Self::Symbol>; }

A symbol table.

Associated Types

type Symbol: ObjectSymbol<'data>[src]

A symbol table entry.

type SymbolIterator: Iterator<Item = Self::Symbol>[src]

An iterator over the symbols in a symbol table.

Loading content...

Required methods

fn symbols(&self) -> Self::SymbolIterator[src]

Get an iterator over the symbols in the table.

This may skip over symbols that are malformed or unsupported.

fn symbol_by_index(&self, index: SymbolIndex) -> Result<Self::Symbol>[src]

Get the symbol at the given index.

The meaning of the index depends on the object file.

Returns an error if the index is invalid.

Loading content...

Implementors

impl<'data, 'file> ObjectSymbolTable<'data> for CoffSymbolTable<'data, 'file>[src]

type Symbol = CoffSymbol<'data, 'file>

type SymbolIterator = CoffSymbolIterator<'data, 'file>

impl<'data, 'file> ObjectSymbolTable<'data> for SymbolTable<'data, 'file>[src]

type Symbol = Symbol<'data, 'file>

type SymbolIterator = SymbolIterator<'data, 'file>

impl<'data, 'file, Elf: FileHeader> ObjectSymbolTable<'data> for ElfSymbolTable<'data, 'file, Elf>[src]

type Symbol = ElfSymbol<'data, 'file, Elf>

type SymbolIterator = ElfSymbolIterator<'data, 'file, Elf>

impl<'data, 'file, Mach: MachHeader> ObjectSymbolTable<'data> for MachOSymbolTable<'data, 'file, Mach>[src]

type Symbol = MachOSymbol<'data, 'file, Mach>

type SymbolIterator = MachOSymbolIterator<'data, 'file, Mach>

Loading content...