pub struct SemverTriple(pub u32, pub u32, pub u32);Expand description
Semantic version triple (major, minor, patch).
Tuple Fields§
§0: u32§1: u32§2: u32Trait Implementations§
Source§impl Clone for SemverTriple
impl Clone for SemverTriple
Source§fn clone(&self) -> SemverTriple
fn clone(&self) -> SemverTriple
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 SemverTriple
impl Debug for SemverTriple
Source§impl<'de> Deserialize<'de> for SemverTriple
impl<'de> Deserialize<'de> for SemverTriple
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 SemverTriple
impl Display for SemverTriple
Source§impl Hash for SemverTriple
impl Hash for SemverTriple
Source§impl Ord for SemverTriple
impl Ord for SemverTriple
Source§fn cmp(&self, other: &SemverTriple) -> Ordering
fn cmp(&self, other: &SemverTriple) -> 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 SemverTriple
impl PartialEq for SemverTriple
Source§impl PartialOrd for SemverTriple
impl PartialOrd for SemverTriple
Source§impl Serialize for SemverTriple
impl Serialize for SemverTriple
impl Copy for SemverTriple
impl Eq for SemverTriple
impl StructuralPartialEq for SemverTriple
Auto Trait Implementations§
impl Freeze for SemverTriple
impl RefUnwindSafe for SemverTriple
impl Send for SemverTriple
impl Sync for SemverTriple
impl Unpin for SemverTriple
impl UnsafeUnpin for SemverTriple
impl UnwindSafe for SemverTriple
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<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP