pub struct SymbolTable<'data> { /* private fields */ }Expand description
A table of symbol entries in a COFF or PE file.
Also includes the string table used for the symbol names.
Implementations
sourceimpl<'data> SymbolTable<'data>
 
impl<'data> SymbolTable<'data>
sourcepub fn parse(header: &ImageFileHeader, data: Bytes<'data>) -> Result<Self>
 
pub fn parse(header: &ImageFileHeader, data: Bytes<'data>) -> Result<Self>
Read the symbol table.
sourcepub fn strings(&self) -> StringTable<'data>
 
pub fn strings(&self) -> StringTable<'data>
Return the string table used for the symbol names.
sourcepub fn symbol(&self, index: usize) -> Result<&'data ImageSymbol>
 
pub fn symbol(&self, index: usize) -> Result<&'data ImageSymbol>
Return the symbol table entry at the given index.
sourcepub fn get<T: Pod>(&self, index: usize) -> Result<&'data T>
 
pub fn get<T: Pod>(&self, index: usize) -> Result<&'data T>
Return the symbol table entry or auxiliary record at the given index.
sourcepub fn map<Entry: SymbolMapEntry, F: Fn(&'data ImageSymbol) -> Option<Entry>>(
    &self, 
    f: F
) -> SymbolMap<Entry>
 
pub fn map<Entry: SymbolMapEntry, F: Fn(&'data ImageSymbol) -> Option<Entry>>(
    &self, 
    f: F
) -> SymbolMap<Entry>
Construct a map from addresses to a user-defined map entry.
Trait Implementations
Auto Trait Implementations
impl<'data> RefUnwindSafe for SymbolTable<'data>
impl<'data> Send for SymbolTable<'data>
impl<'data> Sync for SymbolTable<'data>
impl<'data> Unpin for SymbolTable<'data>
impl<'data> UnwindSafe for SymbolTable<'data>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
 
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more