#[non_exhaustive]pub enum VersionReqVariantLowerBound {
MajorGreater {
major: u64,
},
MinorGreater {
major: u64,
minor: u64,
},
PatchGreater {
major: u64,
minor: u64,
patch: u64,
},
MajorGreaterEqual {
major: u64,
},
MinorGreaterEqual {
major: u64,
minor: u64,
},
PatchGreaterEqual {
major: u64,
minor: u64,
patch: u64,
},
}
Expand description
Lower bound part of VersionReqVariant::Compound
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MajorGreater
Equivalent of “>1”
MinorGreater
Equivalent of “>1.2”
PatchGreater
Equivalent of “>1.2.3”
MajorGreaterEqual
Equivalent of “>=1”
MinorGreaterEqual
Equivalent of “>=1.2”
PatchGreaterEqual
Equivalent of “>=1.2.3”
Trait Implementations§
Source§impl Clone for VersionReqVariantLowerBound
impl Clone for VersionReqVariantLowerBound
Source§fn clone(&self) -> VersionReqVariantLowerBound
fn clone(&self) -> VersionReqVariantLowerBound
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Hash for VersionReqVariantLowerBound
impl Hash for VersionReqVariantLowerBound
Source§impl Ord for VersionReqVariantLowerBound
impl Ord for VersionReqVariantLowerBound
Source§fn cmp(&self, other: &VersionReqVariantLowerBound) -> Ordering
fn cmp(&self, other: &VersionReqVariantLowerBound) -> 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 PartialOrd for VersionReqVariantLowerBound
impl PartialOrd for VersionReqVariantLowerBound
impl Copy for VersionReqVariantLowerBound
impl Eq for VersionReqVariantLowerBound
impl StructuralPartialEq for VersionReqVariantLowerBound
Auto Trait Implementations§
impl Freeze for VersionReqVariantLowerBound
impl RefUnwindSafe for VersionReqVariantLowerBound
impl Send for VersionReqVariantLowerBound
impl Sync for VersionReqVariantLowerBound
impl Unpin for VersionReqVariantLowerBound
impl UnwindSafe for VersionReqVariantLowerBound
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