#[non_exhaustive]pub enum VersionReqVariantUpperBound {
MajorLess {
major: u64,
},
MinorLess {
major: u64,
minor: u64,
},
PatchLess {
major: u64,
minor: u64,
patch: u64,
},
MajorLessEqual {
major: u64,
},
MinorLessEqual {
major: u64,
minor: u64,
},
PatchLessEqual {
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.
MajorLess
Equivalent of “<1”
MinorLess
Equivalent of “<1.2”
PatchLess
Equivalent of “<1.2.3”
MajorLessEqual
Equivalent of “<=1”
MinorLessEqual
Equivalent of “<=1.2”
PatchLessEqual
Equivalent of “<=1.2.3”
Trait Implementations§
Source§impl Clone for VersionReqVariantUpperBound
impl Clone for VersionReqVariantUpperBound
Source§fn clone(&self) -> VersionReqVariantUpperBound
fn clone(&self) -> VersionReqVariantUpperBound
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 VersionReqVariantUpperBound
impl Hash for VersionReqVariantUpperBound
Source§impl Ord for VersionReqVariantUpperBound
impl Ord for VersionReqVariantUpperBound
Source§fn cmp(&self, other: &VersionReqVariantUpperBound) -> Ordering
fn cmp(&self, other: &VersionReqVariantUpperBound) -> 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 VersionReqVariantUpperBound
impl PartialOrd for VersionReqVariantUpperBound
impl Copy for VersionReqVariantUpperBound
impl Eq for VersionReqVariantUpperBound
impl StructuralPartialEq for VersionReqVariantUpperBound
Auto Trait Implementations§
impl Freeze for VersionReqVariantUpperBound
impl RefUnwindSafe for VersionReqVariantUpperBound
impl Send for VersionReqVariantUpperBound
impl Sync for VersionReqVariantUpperBound
impl Unpin for VersionReqVariantUpperBound
impl UnwindSafe for VersionReqVariantUpperBound
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