#[repr(transparent)]pub struct SemVer64(pub u64);Expand description
Packed 64-bit semantic version: [major: u16][minor: u16][patch: u16][abi_flags: u16].
abi_flags == 0 denotes a stable release. Non-zero abi_flags denote pre-release
or target-specific ABI qualifiers and are never matched by stable ranges unless
explicitly requested.
Tuple Fields§
§0: u64Implementations§
Source§impl SemVer64
impl SemVer64
Sourcepub const fn new(major: u16, minor: u16, patch: u16, abi_flags: u16) -> Self
pub const fn new(major: u16, minor: u16, patch: u16, abi_flags: u16) -> Self
Packs (major, minor, patch, abi_flags) into a SemVer64.
Sourcepub const fn release(major: u16, minor: u16, patch: u16) -> Self
pub const fn release(major: u16, minor: u16, patch: u16) -> Self
Packs a stable release (major, minor, patch) with abi_flags = 0.
Sourcepub const fn release_key(self) -> u64
pub const fn release_key(self) -> u64
Compares (major, minor, patch) release tuple, ignoring abi_flags.
Trait Implementations§
impl Copy for SemVer64
impl Eq for SemVer64
impl StructuralPartialEq for SemVer64
Auto Trait Implementations§
impl Freeze for SemVer64
impl RefUnwindSafe for SemVer64
impl Send for SemVer64
impl Sync for SemVer64
impl Unpin for SemVer64
impl UnsafeUnpin for SemVer64
impl UnwindSafe for SemVer64
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