pub struct Symtab<'a> { /* private fields */ }
Expand description
An ELF symbol table, allowing lazy iteration over symbols
Implementations§
source§impl<'a> Symtab<'a>
impl<'a> Symtab<'a>
sourcepub fn parse(
bytes: &'a [u8],
offset: usize,
count: usize,
ctx: Ctx
) -> Result<Symtab<'a>>
pub fn parse( bytes: &'a [u8], offset: usize, count: usize, ctx: Ctx ) -> Result<Symtab<'a>>
Parse a table of count
ELF symbols from offset
.
sourcepub fn get(&self, index: usize) -> Option<Sym>
pub fn get(&self, index: usize) -> Option<Sym>
Try to parse a single symbol from the binary, at index
.
sourcepub fn iter(&self) -> SymIterator<'a> ⓘ
pub fn iter(&self) -> SymIterator<'a> ⓘ
Iterate over all symbols.
Trait Implementations§
source§impl<'a, 'b> IntoIterator for &'b Symtab<'a>
impl<'a, 'b> IntoIterator for &'b Symtab<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more