pub struct SimpleVersion(/* private fields */);
Expand description
A simple “old-school” version number (only numbers and dots).
This is of special interest because it should be compatible and unambiguous in all versioning schemes (expect for semver’s requirement that there be exactly 3 fields).
Trait Implementations§
Source§impl AsRef<Version> for SimpleVersion
impl AsRef<Version> for SimpleVersion
Source§impl Clone for SimpleVersion
impl Clone for SimpleVersion
Source§fn clone(&self) -> SimpleVersion
fn clone(&self) -> SimpleVersion
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 SimpleVersion
impl Debug for SimpleVersion
Source§impl Hash for SimpleVersion
impl Hash for SimpleVersion
Source§impl Ord for SimpleVersion
impl Ord for SimpleVersion
Source§fn cmp(&self, other: &SimpleVersion) -> Ordering
fn cmp(&self, other: &SimpleVersion) -> 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 SimpleVersion
impl PartialEq for SimpleVersion
Source§impl PartialOrd for SimpleVersion
impl PartialOrd for SimpleVersion
Source§impl TryFrom<String> for SimpleVersion
impl TryFrom<String> for SimpleVersion
Source§type Error = InvalidVersion
type Error = InvalidVersion
The type returned in the event of a conversion error.
Source§fn try_from(string: String) -> Result<SimpleVersion, InvalidVersion>
fn try_from(string: String) -> Result<SimpleVersion, InvalidVersion>
Performs the conversion.
impl Eq for SimpleVersion
impl StructuralPartialEq for SimpleVersion
Auto Trait Implementations§
impl Freeze for SimpleVersion
impl RefUnwindSafe for SimpleVersion
impl Send for SimpleVersion
impl Sync for SimpleVersion
impl Unpin for SimpleVersion
impl UnwindSafe for SimpleVersion
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