Struct kernel::process::BinaryVersion
source · pub struct BinaryVersion(/* private fields */);
Expand description
The version of a binary.
Implementations§
source§impl BinaryVersion
impl BinaryVersion
sourcepub fn new(value: NonZeroU32) -> Self
pub fn new(value: NonZeroU32) -> Self
Creates a new binary version.
Trait Implementations§
source§impl Debug for BinaryVersion
impl Debug for BinaryVersion
source§impl Ord for BinaryVersion
impl Ord for BinaryVersion
source§fn cmp(&self, other: &BinaryVersion) -> Ordering
fn cmp(&self, other: &BinaryVersion) -> Ordering
1.21.0 · 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 BinaryVersion
impl PartialEq for BinaryVersion
source§fn eq(&self, other: &BinaryVersion) -> bool
fn eq(&self, other: &BinaryVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BinaryVersion
impl PartialOrd for BinaryVersion
source§fn partial_cmp(&self, other: &BinaryVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &BinaryVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for BinaryVersion
impl StructuralPartialEq for BinaryVersion
Auto Trait Implementations§
impl Freeze for BinaryVersion
impl RefUnwindSafe for BinaryVersion
impl Send for BinaryVersion
impl Sync for BinaryVersion
impl Unpin for BinaryVersion
impl UnwindSafe for BinaryVersion
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