pub trait IntoEdges: IntoEdgeReferences + IntoNeighbors {
type Edges: Iterator<Item = Self::EdgeRef>;
// Required method
fn edges(self, a: Self::NodeId) -> Self::Edges;
}
Expand description
Access to the edges of each node.
The edges are, depending on the graph’s edge type:
Directed
: All edges froma
.Undirected
: All edges connected toa
, witha
being the source of each edge.
This is an extended version of the trait IntoNeighbors
; the former
only iterates over the target node identifiers, while this trait
yields edge references (trait EdgeRef
).
Required Associated Types§
Required Methods§
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.