Enum emoji_commit_type::CommitType
[−]
[src]
pub enum CommitType { Breaking, Feature, Bugfix, Other, Meta, }
A specific commit type
Variants
Breaking
Feature
Bugfix
Other
Meta
Methods
impl CommitType
[src]
pub fn first_variant() -> CommitType
[src]
Return the first commit type (Breaking)
pub fn last_variant() -> CommitType
[src]
Return the last commit variant (Meta)
pub fn next_variant(&self) -> Option<CommitType>
[src]
Given a commit type, return the next commit type
pub fn prev_variant(&self) -> Option<CommitType>
[src]
Given a commit type, return the previous commit type
ⓘImportant traits for CommitTypeIteratorpub fn iter_variants() -> CommitTypeIterator
[src]
ⓘImportant traits for CommitTypeIterator
Return an iterator over all commit types
pub fn emoji(&self) -> &'static str
[src]
Return the emoji for this commit type
pub fn bump_level(&self) -> BumpLevel
[src]
Return the bump level for this commit type
pub fn description(&self) -> &'static str
[src]
Return the description for this commit type
Trait Implementations
impl PartialEq for CommitType
[src]
fn eq(&self, __arg_0: &CommitType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for CommitType
[src]
impl Copy for CommitType
[src]
impl Clone for CommitType
[src]
fn clone(&self) -> CommitType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more