pub enum CommitKind {
Normal,
Merge,
CherryPick,
}Expand description
The kind of a commit in a git graph.
Variants§
Normal
An ordinary commit (glyph: *).
Merge
A merge commit with two parents (glyph: M).
CherryPick
A cherry-picked commit copied from another branch (glyph: C).
Trait Implementations§
Source§impl Clone for CommitKind
impl Clone for CommitKind
Source§fn clone(&self) -> CommitKind
fn clone(&self) -> CommitKind
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 CommitKind
impl Debug for CommitKind
Source§impl PartialEq for CommitKind
impl PartialEq for CommitKind
Source§fn eq(&self, other: &CommitKind) -> bool
fn eq(&self, other: &CommitKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CommitKind
impl Eq for CommitKind
impl StructuralPartialEq for CommitKind
Auto Trait Implementations§
impl Freeze for CommitKind
impl RefUnwindSafe for CommitKind
impl Send for CommitKind
impl Sync for CommitKind
impl Unpin for CommitKind
impl UnsafeUnpin for CommitKind
impl UnwindSafe for CommitKind
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