Struct Version
pub struct Version {
pub major: u16,
pub minor: u16,
}Expand description
A Xila version as major.minor. The patch version never affects compatibility.
Fields§
§major: u16§minor: u16Implementations§
§impl Version
impl Version
pub const fn new(major: u16, minor: u16) -> Version
pub const fn packed(self) -> u32
pub const fn packed(self) -> u32
The 32-bit form stored in the native ELF ABI note and in XilaApi.version:
the major version in the upper 16 bits and the minor version in the lower 16 bits.
pub const fn from_packed(packed: u32) -> Version
pub const fn from_packed(packed: u32) -> Version
The inverse of Version::packed. Every 32-bit value names exactly one version.
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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