pub trait GraphNodeAccess<const I: usize> {
type Node;
// Required methods
fn node_ref(&self) -> &Self::Node;
fn node_mut(&mut self) -> &mut Self::Node;
}Expand description
Provides indexed access to a graph node.
This trait is implemented by graph container types (e.g. a generated graph struct) to allow compile-time access to a specific node by index.
§Type Parameters
I: The compile-time index of the node within the graph.