pub struct CanonVersion {
pub major: u64,
pub minor: u64,
pub patch: u64,
}Expand description
A MAJOR.MINOR.PATCH version as released by the canon.
Fields§
§major: u64Breaking position.
minor: u64Feature position (breaking while the major is zero).
patch: u64Fix position.
Implementations§
Source§impl CanonVersion
impl CanonVersion
Trait Implementations§
Source§impl Clone for CanonVersion
impl Clone for CanonVersion
Source§fn clone(&self) -> CanonVersion
fn clone(&self) -> CanonVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CanonVersion
Source§impl Debug for CanonVersion
impl Debug for CanonVersion
Source§impl<'de> Deserialize<'de> for CanonVersion
impl<'de> Deserialize<'de> for CanonVersion
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CanonVersion
impl Display for CanonVersion
impl Eq for CanonVersion
Source§impl FromStr for CanonVersion
impl FromStr for CanonVersion
Source§impl Hash for CanonVersion
impl Hash for CanonVersion
Source§impl Ord for CanonVersion
impl Ord for CanonVersion
Source§fn cmp(&self, other: &CanonVersion) -> Ordering
fn cmp(&self, other: &CanonVersion) -> Ordering
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 CanonVersion
impl PartialEq for CanonVersion
Source§impl PartialOrd for CanonVersion
impl PartialOrd for CanonVersion
Source§impl Serialize for CanonVersion
impl Serialize for CanonVersion
impl StructuralPartialEq for CanonVersion
Auto Trait Implementations§
impl Freeze for CanonVersion
impl RefUnwindSafe for CanonVersion
impl Send for CanonVersion
impl Sync for CanonVersion
impl Unpin for CanonVersion
impl UnsafeUnpin for CanonVersion
impl UnwindSafe for CanonVersion
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.