pub struct SymbolTable<'data, Elf: FileHeader> { /* private fields */ }
Expand description
A table of symbol entries in an ELF file.
Also includes the string table used for the symbol names.
Implementations
sourceimpl<'data, Elf: FileHeader> SymbolTable<'data, Elf>
impl<'data, Elf: FileHeader> SymbolTable<'data, Elf>
sourcepub fn parse(
endian: Elf::Endian,
data: Bytes<'data>,
sections: &SectionTable<'_, Elf>,
section_index: usize,
section: &Elf::SectionHeader
) -> Result<SymbolTable<'data, Elf>>
pub fn parse(
endian: Elf::Endian,
data: Bytes<'data>,
sections: &SectionTable<'_, Elf>,
section_index: usize,
section: &Elf::SectionHeader
) -> Result<SymbolTable<'data, Elf>>
Parse the given symbol table section.
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 Elf::Sym>
pub fn symbol(&self, index: usize) -> Result<&'data Elf::Sym>
Return the symbol at the given index.
sourcepub fn shndx(&self, index: usize) -> Option<u32>
pub fn shndx(&self, index: usize) -> Option<u32>
Return the extended section index for the given symbol if present.
Trait Implementations
sourceimpl<'data, Elf: Clone + FileHeader> Clone for SymbolTable<'data, Elf> where
Elf::Sym: Clone,
impl<'data, Elf: Clone + FileHeader> Clone for SymbolTable<'data, Elf> where
Elf::Sym: Clone,
sourcefn clone(&self) -> SymbolTable<'data, Elf>
fn clone(&self) -> SymbolTable<'data, Elf>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'data, Elf: Debug + FileHeader> Debug for SymbolTable<'data, Elf> where
Elf::Sym: Debug,
impl<'data, Elf: Debug + FileHeader> Debug for SymbolTable<'data, Elf> where
Elf::Sym: Debug,
sourceimpl<'data, Elf: FileHeader> Default for SymbolTable<'data, Elf>
impl<'data, Elf: FileHeader> Default for SymbolTable<'data, Elf>
impl<'data, Elf: Copy + FileHeader> Copy for SymbolTable<'data, Elf> where
Elf::Sym: Copy,
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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more