Skip to main content

GraphIter

Trait GraphIter 

Source
pub trait GraphIter: GraphTxnT {
    type GraphCursor;

    // Required methods
    fn graph_cursor(
        &self,
        g: &Self::Graph,
        s: Option<&Vertex<ChangeId>>,
    ) -> Result<Self::GraphCursor, TxnErr<Self::GraphError>>;
    fn next_graph<'txn>(
        &'txn self,
        g: &Self::Graph,
        a: &mut Self::GraphCursor,
    ) -> Option<Result<(&'txn Vertex<ChangeId>, &'txn SerializedEdge), TxnErr<Self::GraphError>>>;

    // Provided method
    fn iter_graph<'a>(
        &'a self,
        g: &'a Self::Graph,
        s: Option<&Vertex<ChangeId>>,
    ) -> Result<GraphIterator<'a, Self>, TxnErr<Self::GraphError>> { ... }
}

Required Associated Types§

Required Methods§

Source

fn graph_cursor( &self, g: &Self::Graph, s: Option<&Vertex<ChangeId>>, ) -> Result<Self::GraphCursor, TxnErr<Self::GraphError>>

Source

fn next_graph<'txn>( &'txn self, g: &Self::Graph, a: &mut Self::GraphCursor, ) -> Option<Result<(&'txn Vertex<ChangeId>, &'txn SerializedEdge), TxnErr<Self::GraphError>>>

Provided Methods§

Source

fn iter_graph<'a>( &'a self, g: &'a Self::Graph, s: Option<&Vertex<ChangeId>>, ) -> Result<GraphIterator<'a, Self>, TxnErr<Self::GraphError>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§