pub(crate) struct TagVersion {
version: Version,
revision: Option<u64>,
}Expand description
The version and optional revision a release tag names, ordered by version
precedence and then revision, so 3.1.1 > 3.1.0-3 > 3.1.0-2 > 3.1.0.
Fields§
§version: Version§revision: Option<u64>Implementations§
Source§impl TagVersion
impl TagVersion
Trait Implementations§
Source§impl Clone for TagVersion
impl Clone for TagVersion
Source§fn clone(&self) -> TagVersion
fn clone(&self) -> TagVersion
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 TagVersion
impl Debug for TagVersion
impl Eq for TagVersion
Source§impl Ord for TagVersion
impl Ord for TagVersion
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TagVersion
impl PartialEq for TagVersion
Auto Trait Implementations§
impl Freeze for TagVersion
impl RefUnwindSafe for TagVersion
impl Send for TagVersion
impl Sync for TagVersion
impl Unpin for TagVersion
impl UnsafeUnpin for TagVersion
impl UnwindSafe for TagVersion
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.