pub struct Comparator {
pub op: Op,
pub major: u64,
pub minor: u64,
pub patch: u64,
pub pre: Vec<Identifier>,
}
Fields§
§op: Op
§major: u64
§minor: u64
§patch: u64
§pre: Vec<Identifier>
Trait Implementations§
Source§impl Clone for Comparator
impl Clone for Comparator
Source§fn clone(&self) -> Comparator
fn clone(&self) -> Comparator
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 Comparator
impl Debug for Comparator
Source§impl Hash for Comparator
impl Hash for Comparator
Source§impl Ord for Comparator
impl Ord for Comparator
Source§fn cmp(&self, other: &Comparator) -> Ordering
fn cmp(&self, other: &Comparator) -> 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 Comparator
impl PartialEq for Comparator
Source§impl PartialOrd for Comparator
impl PartialOrd for Comparator
impl Eq for Comparator
impl StructuralPartialEq for Comparator
Auto Trait Implementations§
impl Freeze for Comparator
impl RefUnwindSafe for Comparator
impl Send for Comparator
impl Sync for Comparator
impl Unpin for Comparator
impl UnwindSafe for Comparator
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