Struct goblin::elf::sym::Symtab [−][src]
An ELF symbol table, allowing lazy iteration over symbols
Implementations
impl<'a> Symtab<'a>
[src]
pub fn parse(
bytes: &'a [u8],
offset: usize,
count: usize,
ctx: Ctx
) -> Result<Symtab<'a>>
[src]
bytes: &'a [u8],
offset: usize,
count: usize,
ctx: Ctx
) -> Result<Symtab<'a>>
Parse a table of count
ELF symbols from offset
.
pub fn get(&self, index: usize) -> Option<Sym>
[src]
Try to parse a single symbol from the binary, at index
.
pub fn len(&self) -> usize
[src]
The number of symbols in the table.
pub fn is_empty(&self) -> bool
[src]
Returns true if table has no symbols.
pub fn iter(&self) -> SymIterator<'a>ⓘNotable traits for SymIterator<'a>
impl<'a> Iterator for SymIterator<'a> type Item = Sym;
[src]
Notable traits for SymIterator<'a>
impl<'a> Iterator for SymIterator<'a> type Item = Sym;
Iterate over all symbols.
pub fn to_vec(&self) -> Vec<Sym>
[src]
Parse all symbols into a vector.
Trait Implementations
impl<'a> Debug for Symtab<'a>
[src]
impl<'a> Default for Symtab<'a>
[src]
impl<'a, 'b> IntoIterator for &'b Symtab<'a>
[src]
type Item = <SymIterator<'a> as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = SymIterator<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,