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>; }
Expand description
A symbol table.
Associated Types
type Symbol: ObjectSymbol<'data>
[src]
type Symbol: ObjectSymbol<'data>
[src]A symbol table entry.
type SymbolIterator: Iterator<Item = Self::Symbol>
[src]
type SymbolIterator: Iterator<Item = Self::Symbol>
[src]An iterator over the symbols in a symbol table.
Required methods
fn symbols(&self) -> Self::SymbolIterator
[src]
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]
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
type Symbol = CoffSymbol<'data, 'file>
type SymbolIterator = CoffSymbolIterator<'data, 'file>
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 SymbolIterator = ElfSymbolIterator<'data, 'file, Elf>
impl<'data, 'file, Mach, R> ObjectSymbolTable<'data> for MachOSymbolTable<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
[src]
impl<'data, 'file, Mach, R> ObjectSymbolTable<'data> for MachOSymbolTable<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
[src]type Symbol = MachOSymbol<'data, 'file, Mach, R>
type SymbolIterator = MachOSymbolIterator<'data, 'file, Mach, R>
impl<'data, 'file, R: ReadRef<'data>> ObjectSymbolTable<'data> for SymbolTable<'data, 'file, R>
[src]
impl<'data, 'file, R: ReadRef<'data>> ObjectSymbolTable<'data> for SymbolTable<'data, 'file, R>
[src]type SymbolIterator = SymbolIterator<'data, 'file, R>