pub struct Graph {
pub lines: Vec<Line>,
/* private fields */
}
Expand description
A graph, representing the whole content of the repository state at
a point in time. The encoding is a “flat adjacency list”, where
each vertex contains a index children
and a number of children
n_children
. The children of that vertex are then
&g.children[children .. children + n_children]
.
Fields§
§lines: Vec<Line>
Array of all alive lines in the graph. Line 0 is a dummy line at the end, so that all nodes have a common successor
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
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