[−][src]Struct object::read::elf::SymbolTable
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]
endian: Elf::Endian,
data: Bytes<'data>,
sections: &SectionTable<'_, Elf>,
sh_type: u32
) -> Result<SymbolTable<'data, Elf>>
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]
Elf::Sym: Clone,
fn clone(&self) -> SymbolTable<'data, Elf>
[src]
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,