pub struct PackVersion {
pub major: u16,
pub minor: u16,
pub patch: u16,
}Expand description
Semantic version triple for packs and kernel compatibility.
Fields§
§major: u16Major version.
minor: u16Minor version.
patch: u16Patch version.
Implementations§
Trait Implementations§
Source§impl Clone for PackVersion
impl Clone for PackVersion
Source§fn clone(&self) -> PackVersion
fn clone(&self) -> PackVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PackVersion
Source§impl Debug for PackVersion
impl Debug for PackVersion
Source§impl<'de> Deserialize<'de> for PackVersion
impl<'de> Deserialize<'de> for PackVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PackVersion
Source§impl PartialEq for PackVersion
impl PartialEq for PackVersion
Source§impl Serialize for PackVersion
impl Serialize for PackVersion
impl StructuralPartialEq for PackVersion
Auto Trait Implementations§
impl Freeze for PackVersion
impl RefUnwindSafe for PackVersion
impl Send for PackVersion
impl Sync for PackVersion
impl Unpin for PackVersion
impl UnsafeUnpin for PackVersion
impl UnwindSafe for PackVersion
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