Skip to main content

MutableGraph

Trait MutableGraph 

Source
pub trait MutableGraph {
    // Required method
    fn push(
        &mut self,
        node_id: NodeID,
        p1: NodeID,
        p2: NodeID,
    ) -> Result<Revision, GraphWriteError>;
}
Expand description

Mutable graph in which nodes can be added

Required Methods§

Source

fn push( &mut self, node_id: NodeID, p1: NodeID, p2: NodeID, ) -> Result<Revision, GraphWriteError>

Add a revision to the graph

Absent parents are represented by NULL_REVISION.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§