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

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>,
    sh_type: u32
) -> Result<SymbolTable<'data, Elf>>
[src]

Parse the symbol table of the given section type.

Returns an empty symbol table if the symbol table does not exist.

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 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.

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> RefUnwindSafe for SymbolTable<'data, Elf> where
    <Elf as FileHeader>::Sym: RefUnwindSafe

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>

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

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.