Trait orzir_core::graph::GraphNode
source · pub trait GraphNode<K, E>: Default{
// Required methods
fn key(&self) -> K;
fn add_edge(&mut self, edge: E);
fn for_each_edge<F>(&self, f: F)
where F: FnMut(&E);
// Provided method
fn for_each_edge_to<F>(&self, key: K, f: F)
where F: FnMut(&E) { ... }
}Expand description
A trait for graph nodes.
Required Methods§
sourcefn for_each_edge<F>(&self, f: F)
fn for_each_edge<F>(&self, f: F)
Iterate over the edges of the node.
Provided Methods§
sourcefn for_each_edge_to<F>(&self, key: K, f: F)
fn for_each_edge_to<F>(&self, key: K, f: F)
Iterate over the edges of the node that go to a specific key.
Object Safety§
This trait is not object safe.