Skip to main content

GraphEdgeAccess

Trait GraphEdgeAccess 

Source
pub trait GraphEdgeAccess<const E: usize> {
    type Edge;

    // Required methods
    fn edge_ref(&self) -> &Self::Edge;
    fn edge_mut(&mut self) -> &mut Self::Edge;
}
Expand description

Provides indexed access to a graph edge.

This trait is implemented by graph container types to allow compile-time access to a specific edge by index.

§Type Parameters

  • E: The compile-time index of the edge within the graph.

Required Associated Types§

Source

type Edge

The concrete edge type at index E.

Required Methods§

Source

fn edge_ref(&self) -> &Self::Edge

Immutable access to the edge at index E.

Source

fn edge_mut(&mut self) -> &mut Self::Edge

Mutable access to the edge at index E.

Implementors§