pub struct VersionId(/* private fields */);
Expand description
An ID for referring to a version in Versions
.
Implementations§
source§impl VersionId
impl VersionId
sourcepub fn is_special(&self) -> bool
pub fn is_special(&self) -> bool
Return True
if this is a special version that does not exist in the version table.
sourcepub fn local() -> Self
pub fn local() -> Self
Return the ID for a version index of elf::VER_NDX_LOCAL
.
sourcepub fn global() -> Self
pub fn global() -> Self
Return the ID for a version index of elf::VER_NDX_GLOBAL
.
Trait Implementations§
source§impl PartialEq for VersionId
impl PartialEq for VersionId
impl Copy for VersionId
impl Eq for VersionId
impl StructuralPartialEq for VersionId
Auto Trait Implementations§
impl Freeze for VersionId
impl RefUnwindSafe for VersionId
impl Send for VersionId
impl Sync for VersionId
impl Unpin for VersionId
impl UnwindSafe for VersionId
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.