pub trait IntoEdgesDirected: IntoEdges + IntoNeighborsDirected {
    type EdgesDirected: Iterator<Item = Self::EdgeRef>;
    // Required method
    fn edges_directed(
        self,
        a: Self::NodeId,
        dir: Direction,
    ) -> Self::EdgesDirected;
}Expand description
Access to all edges of each node, in the specified direction.
The edges are, depending on the direction and the graph’s edge type:
- Directed,- Outgoing: All edges from- a.
- Directed,- Incoming: All edges to- a.
- Undirected,- Outgoing: All edges connected to- a, with- abeing the source of each edge.
- Undirected,- Incoming: All edges connected to- a, with- abeing the target of each edge.
This is an extended version of the trait IntoNeighborsDirected; the former
only iterates over the target node identifiers, while this trait
yields edge references (trait EdgeRef).
Required Associated Types§
type EdgesDirected: Iterator<Item = Self::EdgeRef>
Required Methods§
fn edges_directed(self, a: Self::NodeId, dir: Direction) -> Self::EdgesDirected
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.