pub enum Bump {
None,
Patch,
Minor,
Major,
}Expand description
The classified conventional-commit bump for a range of commits (D-08).
Declaration order is the precedence order (lowest to highest), so
Iterator::max()/Ord::max over a range’s individual classifications
yields the highest-precedence result directly.
Variants§
None
No commit’s type maps to a version-affecting change (docs, test,
chore, ci, refactor, style). compute_version collapses this
to Bump::Patch at the call site (D-10’s floor) so a range with
nothing bumping still yields a distinct version.
Patch
fix/perf; any recognised-but-unlisted conventional-commit type
(D-10’s same floor); or a commit message that failed to parse as a
conventional commit at all (D-10: unrecognised/malformed → patch).
Minor
feat.
Major
A breaking change: ! after an optional scope and before the colon
(feat(scope)!: ...), or a BREAKING CHANGE:/BREAKING-CHANGE:
footer, regardless of the commit’s own type.
Trait Implementations§
impl Copy for Bump
impl Eq for Bump
Source§impl Ord for Bump
impl Ord for Bump
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Bump
impl PartialOrd for Bump
impl StructuralPartialEq for Bump
Auto Trait Implementations§
impl Freeze for Bump
impl RefUnwindSafe for Bump
impl Send for Bump
impl Sync for Bump
impl Unpin for Bump
impl UnsafeUnpin for Bump
impl UnwindSafe for Bump
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.