pub trait PropertyGraphReader<NodeKey, Node, EdgeKey, Edge, PropKey, Prop, E> {
// Required methods
fn nodes(
&self,
filter: PropertyFilter<PropKey>,
) -> Result<impl Iterator<Item = NodeKey>, E>;
fn edges(
&self,
filter: PropertyFilter<PropKey>,
) -> Result<impl Iterator<Item = EdgeKey>, E>;
fn properties(
&self,
filter: PropertyFilter<PropKey>,
) -> Result<impl Iterator<Item = PropKey>, E>;
fn read_node(&self, id: NodeKey) -> Result<Node, E>;
fn read_edge(&self, id: &EdgeKey) -> Result<Edge, E>;
fn read_property(&self, id: &PropKey) -> Result<Prop, E>;
}Expand description
Low level reading and traversing interface for a graph
Required Methods§
Sourcefn nodes(
&self,
filter: PropertyFilter<PropKey>,
) -> Result<impl Iterator<Item = NodeKey>, E>
fn nodes( &self, filter: PropertyFilter<PropKey>, ) -> Result<impl Iterator<Item = NodeKey>, E>
List nodes
Sourcefn edges(
&self,
filter: PropertyFilter<PropKey>,
) -> Result<impl Iterator<Item = EdgeKey>, E>
fn edges( &self, filter: PropertyFilter<PropKey>, ) -> Result<impl Iterator<Item = EdgeKey>, E>
List edges
Sourcefn properties(
&self,
filter: PropertyFilter<PropKey>,
) -> Result<impl Iterator<Item = PropKey>, E>
fn properties( &self, filter: PropertyFilter<PropKey>, ) -> Result<impl Iterator<Item = PropKey>, E>
List properties
Sourcefn read_property(&self, id: &PropKey) -> Result<Prop, E>
fn read_property(&self, id: &PropKey) -> Result<Prop, E>
Get a property by its key
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.