pub struct SimplexVersion { /* private fields */ }Available on crate feature
websocket only.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
ffi only.pub fn major(&self) -> u8
Available on crate feature
ffi only.pub fn minor(&self) -> u8
Available on crate feature
ffi only.pub fn patch(&self) -> u8
Available on crate feature
ffi only.pub fn hotfix(&self) -> u8
Available on crate feature
ffi only.pub fn is_supported(self) -> bool
Available on crate feature
ffi 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more