Struct object::read::elf::SymbolTable [−][src]
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]
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.
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]
&self,
endian: Elf::Endian,
symbol: &'data Elf::Sym
) -> Result<&'data [u8]>
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]
&self,
endian: Elf::Endian,
f: F
) -> SymbolMap<Entry>
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]
Elf::Sym: Clone,
fn clone(&self) -> SymbolTable<'data, Elf>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'data, Elf: Copy + FileHeader> Copy for SymbolTable<'data, Elf> where
Elf::Sym: Copy,
[src]
Elf::Sym: Copy,
impl<'data, Elf: Debug + FileHeader> Debug for SymbolTable<'data, Elf> where
Elf::Sym: Debug,
[src]
Elf::Sym: Debug,
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,
<Elf as FileHeader>::Sym: Sync,
impl<'data, Elf> Sync for SymbolTable<'data, Elf> where
<Elf as FileHeader>::Sym: Sync,
<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]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,