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§
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 Methods§
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".