Struct petgraph::visit::ReversedEdgeReference
[−]
[src]
pub struct ReversedEdgeReference<R>(_);
A reversed edge reference
Trait Implementations
impl<R: Copy> Copy for ReversedEdgeReference<R>[src]
impl<R: Clone> Clone for ReversedEdgeReference<R>[src]
fn clone(&self) -> ReversedEdgeReference<R>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<R: Debug> Debug for ReversedEdgeReference<R>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<R> EdgeRef for ReversedEdgeReference<R> where
R: EdgeRef, [src]
R: EdgeRef,
An edge reference
type NodeId = R::NodeId
type EdgeId = R::EdgeId
type Weight = R::Weight
fn source(&self) -> Self::NodeId[src]
The source node of the edge.
fn target(&self) -> Self::NodeId[src]
The target node of the edge.
fn weight(&self) -> &Self::Weight[src]
A reference to the weight of the edge.
fn id(&self) -> Self::EdgeId[src]
The edge’s identifier.