pub struct VersionTable<'data, Elf: FileHeader> {
    symbols: &'data [Versym<Elf::Endian>],
    versions: Vec<Version<'data>>,
}Expand description
A table of version definitions and requirements.
It allows looking up the version information for a given symbol index.
This is derived from entries in the elf::SHT_GNU_VERSYM, elf::SHT_GNU_VERDEF
and elf::SHT_GNU_VERNEED sections.
Returned by SectionTable::versions.
Fields§
§symbols: &'data [Versym<Elf::Endian>]§versions: Vec<Version<'data>>Implementations§
Source§impl<'data, Elf: FileHeader> VersionTable<'data, Elf>
 
impl<'data, Elf: FileHeader> VersionTable<'data, Elf>
Sourcepub fn parse<R: ReadRef<'data>>(
    endian: Elf::Endian,
    versyms: &'data [Versym<Elf::Endian>],
    verdefs: Option<VerdefIterator<'data, Elf>>,
    verneeds: Option<VerneedIterator<'data, Elf>>,
    strings: StringTable<'data, R>,
) -> Result<Self>
 
pub fn parse<R: ReadRef<'data>>( endian: Elf::Endian, versyms: &'data [Versym<Elf::Endian>], verdefs: Option<VerdefIterator<'data, Elf>>, verneeds: Option<VerneedIterator<'data, Elf>>, strings: StringTable<'data, R>, ) -> Result<Self>
Parse the version sections.
Sourcepub fn version_index(
    &self,
    endian: Elf::Endian,
    index: SymbolIndex,
) -> VersionIndex
 
pub fn version_index( &self, endian: Elf::Endian, index: SymbolIndex, ) -> VersionIndex
Return version index for a given symbol index.
Trait Implementations§
Source§impl<'data, Elf: Clone + FileHeader> Clone for VersionTable<'data, Elf>
 
impl<'data, Elf: Clone + FileHeader> Clone for VersionTable<'data, Elf>
Source§fn clone(&self) -> VersionTable<'data, Elf>
 
fn clone(&self) -> VersionTable<'data, Elf>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<'data, Elf: Debug + FileHeader> Debug for VersionTable<'data, Elf>
 
impl<'data, Elf: Debug + FileHeader> Debug for VersionTable<'data, Elf>
Source§impl<'data, Elf: FileHeader> Default for VersionTable<'data, Elf>
 
impl<'data, Elf: FileHeader> Default for VersionTable<'data, Elf>
Auto Trait Implementations§
impl<'data, Elf> Freeze for VersionTable<'data, Elf>
impl<'data, Elf> RefUnwindSafe for VersionTable<'data, Elf>
impl<'data, Elf> Send for VersionTable<'data, Elf>
impl<'data, Elf> Sync for VersionTable<'data, Elf>
impl<'data, Elf> Unpin for VersionTable<'data, Elf>
impl<'data, Elf> UnwindSafe for VersionTable<'data, Elf>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more