Struct object::read::elf::SymbolTable[][src]

pub struct SymbolTable<'data, Elf: FileHeader> { /* fields omitted */ }

A table of symbol entries in an ELF file.

Also includes the string table used for the symbol names.

Implementations

impl<'data, Elf: FileHeader> SymbolTable<'data, Elf>[src]

pub fn parse(
    endian: Elf::Endian,
    data: Bytes<'data>,
    sections: &SectionTable<'_, Elf>,
    section_index: usize,
    section: &Elf::SectionHeader
) -> Result<SymbolTable<'data, Elf>>
[src]

Parse the given symbol table section.

pub fn section(&self) -> usize[src]

Return the section index of this symbol table.

pub fn strings(&self) -> StringTable<'data>[src]

Return the string table used for the symbol names.

pub fn iter(&self) -> Iter<'data, Elf::Sym>[src]

Iterate over the symbols.

pub fn is_empty(&self) -> bool[src]

Return true if the symbol table is empty.

pub fn len(&self) -> usize[src]

The number of symbols.

pub fn symbol(&self, index: usize) -> Result<&'data Elf::Sym>[src]

Return the symbol at the given index.

pub fn shndx(&self, index: usize) -> Option<u32>[src]

Return the extended section index for the given symbol if present.

pub fn symbol_name(
    &self,
    endian: Elf::Endian,
    symbol: &'data Elf::Sym
) -> Result<&'data [u8]>
[src]

Return the symbol name for the given symbol.

pub fn map<Entry: SymbolMapEntry, F: Fn(&'data Elf::Sym) -> Option<Entry>>(
    &self,
    endian: Elf::Endian,
    f: F
) -> SymbolMap<Entry>
[src]

Construct a map from addresses to a user-defined map entry.

Trait Implementations

impl<'data, Elf: Clone + FileHeader> Clone for SymbolTable<'data, Elf> where
    Elf::Sym: Clone
[src]

impl<'data, Elf: Copy + FileHeader> Copy for SymbolTable<'data, Elf> where
    Elf::Sym: Copy
[src]

impl<'data, Elf: Debug + FileHeader> Debug for SymbolTable<'data, Elf> where
    Elf::Sym: Debug
[src]

impl<'data, Elf: FileHeader> Default for SymbolTable<'data, Elf>[src]

Auto Trait Implementations

impl<'data, Elf> Send for SymbolTable<'data, Elf> where
    <Elf as FileHeader>::Sym: Sync

impl<'data, Elf> Sync for SymbolTable<'data, Elf> where
    <Elf as FileHeader>::Sym: Sync

impl<'data, Elf> Unpin for SymbolTable<'data, Elf>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.