pub enum Event {
Commit(usize),
BranchCreated(usize),
Checkout(String),
Merge(usize),
CherryPick(usize),
}Expand description
A source-ordered event in the git timeline.
Replaying events in order re-creates the exact sequence of operations
the author wrote, which the layout pass needs to position rows correctly.
Variants§
Commit(usize)
A commit was added (index into GitGraph::commits).
BranchCreated(usize)
A new branch was created (index into GitGraph::branches).
Checkout(String)
The active branch changed. Value is the branch name.
Merge(usize)
A merge was performed; the merge commit index is stored.
CherryPick(usize)
A cherry-pick was performed; the cherry-pick commit index is stored.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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