pub enum VersionBump {
Minor = 1,
Major = 2,
}
Variants§
Implementations§
Source§impl VersionBump
impl VersionBump
fn bump(&mut self, new: Self) -> &mut Self
fn bump_major(&mut self) -> &mut Self
fn bump_minor(&mut self) -> &mut Self
pub fn next_semver(&self, version: Version) -> Version
Trait Implementations§
Source§impl Clone for VersionBump
impl Clone for VersionBump
Source§fn clone(&self) -> VersionBump
fn clone(&self) -> VersionBump
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 VersionBump
impl Debug for VersionBump
Source§impl Ord for VersionBump
impl Ord for VersionBump
Source§fn cmp(&self, other: &VersionBump) -> Ordering
fn cmp(&self, other: &VersionBump) -> 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 VersionBump
impl PartialEq for VersionBump
Source§impl PartialOrd for VersionBump
impl PartialOrd for VersionBump
impl Copy for VersionBump
impl Eq for VersionBump
impl StructuralPartialEq for VersionBump
Auto Trait Implementations§
impl Freeze for VersionBump
impl RefUnwindSafe for VersionBump
impl Send for VersionBump
impl Sync for VersionBump
impl Unpin for VersionBump
impl UnwindSafe for VersionBump
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
Checks if this value is equivalent to the given key. Read more
§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.