pub struct Versym {
pub vs_val: u16,
}
Expand description
An ELF Symbol Version entry.
Fields§
§vs_val: u16
Implementations§
Source§impl Versym
impl Versym
Sourcepub fn is_local(&self) -> bool
pub fn is_local(&self) -> bool
Returns true if the symbol is local and not available outside the object according to
VER_NDX_LOCAL
.
Sourcepub fn is_global(&self) -> bool
pub fn is_global(&self) -> bool
Returns true if the symbol is defined in this object and globally available according
to VER_NDX_GLOBAL
.
Returns true if the hidden
bit is set according to the VERSYM_HIDDEN
bitmask.
Sourcepub fn version(&self) -> u16
pub fn version(&self) -> u16
Returns the symbol version index according to the VERSYM_VERSION
bitmask.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Versym
impl RefUnwindSafe for Versym
impl Send for Versym
impl Sync for Versym
impl Unpin for Versym
impl UnwindSafe for Versym
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