Trait Graph

Source
pub trait Graph {
    // Required method
    fn parents(&self, _: Revision) -> Result<[Revision; 2], GraphError>;
}
Expand description

The simplest expression of what we need of Mercurial DAGs.

Required Methods§

Source

fn parents(&self, _: Revision) -> Result<[Revision; 2], GraphError>

Return the two parents of the given Revision.

Each of the parents can be independently NULL_REVISION

Implementors§