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.
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.
Implementors
impl<'data, 'file> ObjectSymbolTable<'data> for CoffSymbolTable<'data, 'file>
[src]
impl<'data, 'file> ObjectSymbolTable<'data> for CoffSymbolTable<'data, 'file>
[src]type Symbol = CoffSymbol<'data, 'file>
type SymbolIterator = CoffSymbolIterator<'data, 'file>
fn symbols(&self) -> Self::SymbolIterator
[src]
fn symbol_by_index(&self, index: SymbolIndex) -> Result<Self::Symbol>
[src]
impl<'data, 'file> ObjectSymbolTable<'data> for SymbolTable<'data, 'file>
[src]
impl<'data, 'file> ObjectSymbolTable<'data> for SymbolTable<'data, 'file>
[src]type Symbol = Symbol<'data, 'file>
type SymbolIterator = SymbolIterator<'data, 'file>
fn symbols(&self) -> Self::SymbolIterator
[src]
fn symbol_by_index(&self, index: SymbolIndex) -> Result<Self::Symbol>
[src]
impl<'data, 'file, Elf: FileHeader> ObjectSymbolTable<'data> for ElfSymbolTable<'data, 'file, Elf>
[src]
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>
fn symbols(&self) -> Self::SymbolIterator
[src]
fn symbol_by_index(&self, index: SymbolIndex) -> Result<Self::Symbol>
[src]
impl<'data, 'file, Mach: MachHeader> ObjectSymbolTable<'data> for MachOSymbolTable<'data, 'file, Mach>
[src]
impl<'data, 'file, Mach: MachHeader> ObjectSymbolTable<'data> for MachOSymbolTable<'data, 'file, Mach>
[src]