pub struct SampleGraph;Expand description
A stub Graph, same as the one from test-ancestor.py
o 13
|
| o 12
| |
| | o 11
| | |
| | | | o 10
| | | | |
| o—+ | 9
| | | | |
o | | | | 8
/ / / /
| | o | 7
| | | |
o—+ | 6
/ / /
| | o 5
| |/
| o 4
| |
o | 3
| |
| o 2
|/
o 1
|
o 0
Trait Implementations§
Source§impl Clone for SampleGraph
impl Clone for SampleGraph
Source§impl Debug for SampleGraph
impl Debug for SampleGraph
Source§impl Graph for SampleGraph
impl Graph for SampleGraph
Source§impl MergeRankedGraph for SampleGraph
impl MergeRankedGraph for SampleGraph
Source§fn merge_rank(&self, rev: Revision) -> Result<Rank, GraphReadError>
fn merge_rank(&self, rev: Revision) -> Result<Rank, GraphReadError>
Returns the number of merge nodes in the ancestors of the given
Revision, which includes itself.
Source§impl RankedGraph for SampleGraph
impl RankedGraph for SampleGraph
Auto Trait Implementations§
impl Freeze for SampleGraph
impl RefUnwindSafe for SampleGraph
impl Send for SampleGraph
impl Sync for SampleGraph
impl Unpin for SampleGraph
impl UnsafeUnpin for SampleGraph
impl UnwindSafe for SampleGraph
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