pub struct SemanticVersion { /* private fields */ }Expand description
A semantic version number.
Implementations§
Source§impl SemanticVersion
impl SemanticVersion
Trait Implementations§
Source§impl Clone for SemanticVersion
impl Clone for SemanticVersion
Source§fn clone(&self) -> SemanticVersion
fn clone(&self) -> SemanticVersion
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 Debug for SemanticVersion
impl Debug for SemanticVersion
Source§impl Default for SemanticVersion
impl Default for SemanticVersion
Source§fn default() -> SemanticVersion
fn default() -> SemanticVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SemanticVersion
impl<'de> Deserialize<'de> for SemanticVersion
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
Source§impl Display for SemanticVersion
impl Display for SemanticVersion
Source§impl FromStr for SemanticVersion
impl FromStr for SemanticVersion
Source§impl Ord for SemanticVersion
impl Ord for SemanticVersion
Source§fn cmp(&self, other: &SemanticVersion) -> Ordering
fn cmp(&self, other: &SemanticVersion) -> 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 for SemanticVersion
impl PartialEq for SemanticVersion
Source§impl PartialOrd for SemanticVersion
impl PartialOrd for SemanticVersion
Source§impl Serialize for SemanticVersion
impl Serialize for SemanticVersion
impl Copy for SemanticVersion
impl Eq for SemanticVersion
impl StructuralPartialEq for SemanticVersion
Auto Trait Implementations§
impl Freeze for SemanticVersion
impl RefUnwindSafe for SemanticVersion
impl Send for SemanticVersion
impl Sync for SemanticVersion
impl Unpin for SemanticVersion
impl UnwindSafe for SemanticVersion
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