pub struct KernelVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
}Expand description
Kernel version information.
Fields§
§major: u32Major version number
minor: u32Minor version number
patch: u32Patch version number
Trait Implementations§
Source§impl Clone for KernelVersion
impl Clone for KernelVersion
Source§fn clone(&self) -> KernelVersion
fn clone(&self) -> KernelVersion
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 moreSource§impl Debug for KernelVersion
impl Debug for KernelVersion
impl Eq for KernelVersion
Source§impl Ord for KernelVersion
impl Ord for KernelVersion
Source§fn cmp(&self, other: &KernelVersion) -> Ordering
fn cmp(&self, other: &KernelVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KernelVersion
impl PartialEq for KernelVersion
Source§impl PartialOrd for KernelVersion
impl PartialOrd for KernelVersion
impl StructuralPartialEq for KernelVersion
Auto Trait Implementations§
impl Freeze for KernelVersion
impl RefUnwindSafe for KernelVersion
impl Send for KernelVersion
impl Sync for KernelVersion
impl Unpin for KernelVersion
impl UnsafeUnpin for KernelVersion
impl UnwindSafe for KernelVersion
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