pub enum SemverBreakingLine {
StableMajor(u64),
PreOneMinor(u64),
PreZeroPatch(u64),
}Expand description
The semver breaking line a version belongs to.
Cargo’s ^ rules make versions within one line interchangeable: 1.x
shares a line across minor and patch, 0.x.y shares only the patch for
0.0.x, and 0.x shares the minor line.
Variants§
StableMajor(u64)
major >= 1: the major version number.
PreOneMinor(u64)
0.x.y with x >= 1: the minor version number.
PreZeroPatch(u64)
0.0.y: the patch version number.
Trait Implementations§
Source§impl Clone for SemverBreakingLine
impl Clone for SemverBreakingLine
Source§impl ComposeSchema for SemverBreakingLine
impl ComposeSchema for SemverBreakingLine
Source§impl Debug for SemverBreakingLine
impl Debug for SemverBreakingLine
Source§impl<'de> Deserialize<'de> for SemverBreakingLine
impl<'de> Deserialize<'de> for SemverBreakingLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SemverBreakingLine
Source§impl Ord for SemverBreakingLine
impl Ord for SemverBreakingLine
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SemverBreakingLine
impl PartialEq for SemverBreakingLine
Source§impl PartialOrd for SemverBreakingLine
impl PartialOrd for SemverBreakingLine
Source§impl Serialize for SemverBreakingLine
impl Serialize for SemverBreakingLine
impl StructuralPartialEq for SemverBreakingLine
Auto Trait Implementations§
impl Freeze for SemverBreakingLine
impl RefUnwindSafe for SemverBreakingLine
impl Send for SemverBreakingLine
impl Sync for SemverBreakingLine
impl Unpin for SemverBreakingLine
impl UnsafeUnpin for SemverBreakingLine
impl UnwindSafe for SemverBreakingLine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.