pub struct VersionTable<'data, Elf: FileHeader> { /* private fields */ }
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 SHT_GNU_versym
, SHT_GNU_verdef
and SHT_GNU_verneed
sections.
Implementations
sourceimpl<'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: usize) -> VersionIndex
pub fn version_index(&self, endian: Elf::Endian, index: usize) -> VersionIndex
Return version index for a given symbol index.
Trait Implementations
sourceimpl<'data, Elf: Clone + FileHeader> Clone for VersionTable<'data, Elf> where
Elf::Endian: Clone,
impl<'data, Elf: Clone + FileHeader> Clone for VersionTable<'data, Elf> where
Elf::Endian: Clone,
sourcefn clone(&self) -> VersionTable<'data, Elf>
fn clone(&self) -> VersionTable<'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 VersionTable<'data, Elf> where
Elf::Endian: Debug,
impl<'data, Elf: Debug + FileHeader> Debug for VersionTable<'data, Elf> where
Elf::Endian: Debug,
sourceimpl<'data, Elf: FileHeader> Default for VersionTable<'data, Elf>
impl<'data, Elf: FileHeader> Default for VersionTable<'data, Elf>
Auto Trait Implementations
impl<'data, Elf> RefUnwindSafe for VersionTable<'data, Elf> where
<Elf as FileHeader>::Endian: RefUnwindSafe,
impl<'data, Elf> Send for VersionTable<'data, Elf> where
<Elf as FileHeader>::Endian: Sync,
impl<'data, Elf> Sync for VersionTable<'data, Elf> where
<Elf as FileHeader>::Endian: Sync,
impl<'data, Elf> Unpin for VersionTable<'data, Elf>
impl<'data, Elf> UnwindSafe for VersionTable<'data, Elf> where
<Elf as FileHeader>::Endian: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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