pub struct SemverVersion(pub SemverVersion);
Expand description
Semver Versioning struct
Tuple Fields§
§0: SemverVersion
Implementations§
Source§impl SemverVersion
impl SemverVersion
Sourcepub fn parse(version: &str) -> WalletResult<Self>
pub fn parse(version: &str) -> WalletResult<Self>
Parse a semver versioned string into Self
Sourcepub fn stringify_version<'a>(&'a self) -> Cow<'a, str>
pub fn stringify_version<'a>(&'a self) -> Cow<'a, str>
Get the string version of Self in the format major.minor.patch
Trait Implementations§
Source§impl Clone for SemverVersion
impl Clone for SemverVersion
Source§fn clone(&self) -> SemverVersion
fn clone(&self) -> SemverVersion
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 SemverVersion
impl Debug for SemverVersion
Source§impl Default for SemverVersion
impl Default for SemverVersion
Source§fn default() -> SemverVersion
fn default() -> SemverVersion
Returns the “default value” for a type. Read more
Source§impl Display for SemverVersion
impl Display for SemverVersion
Source§impl Hash for SemverVersion
impl Hash for SemverVersion
Source§impl Ord for SemverVersion
impl Ord for SemverVersion
Source§fn cmp(&self, other: &SemverVersion) -> Ordering
fn cmp(&self, other: &SemverVersion) -> 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 SemverVersion
impl PartialEq for SemverVersion
Source§impl PartialOrd for SemverVersion
impl PartialOrd for SemverVersion
impl Eq for SemverVersion
impl StructuralPartialEq for SemverVersion
Auto Trait Implementations§
impl Freeze for SemverVersion
impl RefUnwindSafe for SemverVersion
impl Send for SemverVersion
impl Sync for SemverVersion
impl Unpin for SemverVersion
impl UnwindSafe for SemverVersion
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