pub enum CommitType {
Breaking,
Feature,
Bugfix,
Other,
Meta,
}
Expand description
A specific commit type
Variants§
Implementations§
Source§impl CommitType
impl CommitType
Sourcepub fn first_variant() -> CommitType
pub fn first_variant() -> CommitType
Return the first commit type (Breaking)
Sourcepub fn last_variant() -> CommitType
pub fn last_variant() -> CommitType
Return the last commit variant (Meta)
Sourcepub fn next_variant(&self) -> Option<CommitType>
pub fn next_variant(&self) -> Option<CommitType>
Given a commit type, return the next commit type
Sourcepub fn prev_variant(&self) -> Option<CommitType>
pub fn prev_variant(&self) -> Option<CommitType>
Given a commit type, return the previous commit type
Sourcepub fn iter_variants() -> CommitTypeIterator ⓘ
pub fn iter_variants() -> CommitTypeIterator ⓘ
Return an iterator over all commit types
Sourcepub fn bump_level(&self) -> BumpLevel
pub fn bump_level(&self) -> BumpLevel
Return the bump level for this commit type
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Return the description for this commit type
Trait Implementations§
Source§impl Clone for CommitType
impl Clone for CommitType
Source§fn clone(&self) -> CommitType
fn clone(&self) -> CommitType
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 CommitType
impl Debug for CommitType
Source§impl PartialEq for CommitType
impl PartialEq for CommitType
impl Copy for CommitType
impl Eq for CommitType
impl StructuralPartialEq for CommitType
Auto Trait Implementations§
impl Freeze for CommitType
impl RefUnwindSafe for CommitType
impl Send for CommitType
impl Sync for CommitType
impl Unpin for CommitType
impl UnwindSafe for CommitType
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