pub enum SemanticVersionCompleteness {
OnlyMajor,
OnlyMinorAndMajor,
Complete,
}
Expand description
Represents the completeness of a semantic version.
1
would be OnlyMajor
, 1.2
would be MajorAndMinor
and 1.2.3
would be Complete
Variants§
Trait Implementations§
source§impl Clone for SemanticVersionCompleteness
impl Clone for SemanticVersionCompleteness
source§fn clone(&self) -> SemanticVersionCompleteness
fn clone(&self) -> SemanticVersionCompleteness
Returns a copy 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 Debug for SemanticVersionCompleteness
impl Debug for SemanticVersionCompleteness
source§impl Ord for SemanticVersionCompleteness
impl Ord for SemanticVersionCompleteness
source§fn cmp(&self, other: &SemanticVersionCompleteness) -> Ordering
fn cmp(&self, other: &SemanticVersionCompleteness) -> 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<SemanticVersionCompleteness> for SemanticVersionCompleteness
impl PartialEq<SemanticVersionCompleteness> for SemanticVersionCompleteness
source§fn eq(&self, other: &SemanticVersionCompleteness) -> bool
fn eq(&self, other: &SemanticVersionCompleteness) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SemanticVersionCompleteness> for SemanticVersionCompleteness
impl PartialOrd<SemanticVersionCompleteness> for SemanticVersionCompleteness
source§fn partial_cmp(&self, other: &SemanticVersionCompleteness) -> Option<Ordering>
fn partial_cmp(&self, other: &SemanticVersionCompleteness) -> 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 SemanticVersionCompleteness
impl StructuralEq for SemanticVersionCompleteness
impl StructuralPartialEq for SemanticVersionCompleteness
Auto Trait Implementations§
impl RefUnwindSafe for SemanticVersionCompleteness
impl Send for SemanticVersionCompleteness
impl Sync for SemanticVersionCompleteness
impl Unpin for SemanticVersionCompleteness
impl UnwindSafe for SemanticVersionCompleteness
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