pub struct Version<'data> {
name: &'data [u8],
hash: u32,
valid: bool,
file: Option<&'data [u8]>,
}
Expand description
A version definition or requirement.
This is derived from entries in the elf::SHT_GNU_VERDEF
and elf::SHT_GNU_VERNEED
sections.
Fields§
§name: &'data [u8]
§hash: u32
§valid: bool
§file: Option<&'data [u8]>
Implementations§
source§impl<'data> Version<'data>
impl<'data> Version<'data>
sourcepub fn file(&self) -> Option<&'data [u8]>
pub fn file(&self) -> Option<&'data [u8]>
Return the filename of the library containing this version.
This is the vn_file
field of the associated entry in elf::SHT_GNU_VERNEED
.
or None
if the version info was parsed from a elf::SHT_GNU_VERDEF
section.
Trait Implementations§
impl<'data> Copy for Version<'data>
Auto Trait Implementations§
impl<'data> Freeze for Version<'data>
impl<'data> RefUnwindSafe for Version<'data>
impl<'data> Send for Version<'data>
impl<'data> Sync for Version<'data>
impl<'data> Unpin for Version<'data>
impl<'data> UnwindSafe for Version<'data>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)