petgraph::visit

Trait IntoEdgeReferences

Source
pub trait IntoEdgeReferences: Data + GraphRef {
    type EdgeRef: EdgeRef<NodeId = Self::NodeId, EdgeId = Self::EdgeId, Weight = Self::EdgeWeight>;
    type EdgeReferences: Iterator<Item = Self::EdgeRef>;

    // Required method
    fn edge_references(self) -> Self::EdgeReferences;
}
Expand description

Access to the sequence of the graph’s edges

Required Associated Types§

Source

type EdgeRef: EdgeRef<NodeId = Self::NodeId, EdgeId = Self::EdgeId, Weight = Self::EdgeWeight>

Source

type EdgeReferences: Iterator<Item = Self::EdgeRef>

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.

Implementations on Foreign Types§

Source§

impl<'a, G> IntoEdgeReferences for &'a G

Implementors§

Source§

impl<'a, 'b, G> IntoEdgeReferences for &'b Frozen<'a, G>

Source§

impl<'a, G, F> IntoEdgeReferences for &'a EdgeFiltered<G, F>

Source§

impl<'a, G, F> IntoEdgeReferences for &'a NodeFiltered<G, F>

Source§

impl<'a, Ix: IndexType, E> IntoEdgeReferences for &'a List<E, Ix>

Source§

impl<'a, N, E, Ty, Ix> IntoEdgeReferences for &'a Csr<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

type EdgeRef = EdgeReference<'a, E, Ty, Ix>

Source§

type EdgeReferences = EdgeReferences<'a, E, Ty, Ix>

Source§

impl<'a, N: 'a, E: 'a, Ty, Ix> IntoEdgeReferences for &'a Graph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

impl<G> IntoEdgeReferences for Reversed<G>