pub struct SimplexVersion { /* private fields */ }Expand description
Parses SimpleX version numbers in the form MAJOR.MINOR.PATCH.HOTFIX.
Implementations§
Source§impl SimplexVersion
impl SimplexVersion
pub const fn new(major: u8, minor: u8, patch: u8, hotfix: u8) -> SimplexVersion
Available on crate feature
cli only.pub fn major(&self) -> u8
Available on crate feature
cli only.pub fn minor(&self) -> u8
Available on crate feature
cli only.pub fn patch(&self) -> u8
Available on crate feature
cli only.pub fn hotfix(&self) -> u8
Available on crate feature
cli only.pub fn is_supported(self) -> bool
Available on crate feature
cli only.Trait Implementations§
Source§impl Clone for SimplexVersion
impl Clone for SimplexVersion
Source§fn clone(&self) -> SimplexVersion
fn clone(&self) -> SimplexVersion
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 moreSource§impl Debug for SimplexVersion
impl Debug for SimplexVersion
Source§impl Display for SimplexVersion
impl Display for SimplexVersion
Source§impl FromStr for SimplexVersion
impl FromStr for SimplexVersion
Source§impl Hash for SimplexVersion
impl Hash for SimplexVersion
Source§impl Ord for SimplexVersion
impl Ord for SimplexVersion
Source§fn cmp(&self, other: &SimplexVersion) -> Ordering
fn cmp(&self, other: &SimplexVersion) -> 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
Source§impl PartialEq for SimplexVersion
impl PartialEq for SimplexVersion
Source§fn eq(&self, other: &SimplexVersion) -> bool
fn eq(&self, other: &SimplexVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SimplexVersion
impl PartialOrd for SimplexVersion
impl Copy for SimplexVersion
impl Eq for SimplexVersion
impl StructuralPartialEq for SimplexVersion
Auto Trait Implementations§
impl Freeze for SimplexVersion
impl RefUnwindSafe for SimplexVersion
impl Send for SimplexVersion
impl Sync for SimplexVersion
impl Unpin for SimplexVersion
impl UnsafeUnpin for SimplexVersion
impl UnwindSafe for SimplexVersion
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