pub struct GitGraph {
pub branches: Vec<Branch>,
pub commits: Vec<Commit>,
pub events: Vec<Event>,
}Expand description
A parsed gitGraph diagram.
branches lists all branches in creation order (main always first).
commits lists all commits in timeline order (the order they were emitted
by the source). events is the source-ordered operation log used by the
renderer to determine row ordering and glyph connections.
Constructed by crate::parser::git_graph::parse and consumed by
crate::render::git_graph::render.
Fields§
§branches: Vec<Branch>All branches in branch-creation order; main is always at index 0.
commits: Vec<Commit>All commits in timeline order (the order they appear in the source).
events: Vec<Event>Source-ordered event log for the layout pass to replay.
Implementations§
Trait Implementations§
impl Eq for GitGraph
impl StructuralPartialEq for GitGraph
Auto Trait Implementations§
impl Freeze for GitGraph
impl RefUnwindSafe for GitGraph
impl Send for GitGraph
impl Sync for GitGraph
impl Unpin for GitGraph
impl UnsafeUnpin for GitGraph
impl UnwindSafe for GitGraph
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