pub trait DirectedEdge {
    type Edge;

    // Required methods
    fn is_incoming(&self) -> bool;
    fn edge(&self) -> Self::Edge;

    // Provided method
    fn is_outgoing(&self) -> bool { ... }
}
Expand description

A directed edge.

A directed edge is either incoming or outgoing.

Required Associated Types§

source

type Edge

The underlying edge.

Required Methods§

source

fn is_incoming(&self) -> bool

Whether the edge is incoming.

source

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

The underlying edge.

Provided Methods§

source

fn is_outgoing(&self) -> bool

Whether the edge is outgoing.

Implementors§

source§

impl<E> DirectedEdge for NetworkDirectedEdge<E>where E: Clone,

§

type Edge = E

source§

impl<ID> DirectedEdge for rs_graph::linkedlistgraph::Edge<ID>where ID: PrimInt + Unsigned,

§

type Edge = Edge<ID>

source§

impl<ID> DirectedEdge for rs_graph::vecgraph::Edge<ID>where ID: PrimInt + Unsigned,

§

type Edge = Edge<ID>