Struct petgraph::csr::EdgeReference [] [src]

pub struct EdgeReference<'a, E: 'a, Ty, Ix: 'a = DefaultIx> { /* fields omitted */ }

Methods

impl<'a, Ty, E, Ix> EdgeReference<'a, E, Ty, Ix> where
    Ty: EdgeType
[src]

Access the edge’s weight.

NOTE that this method offers a longer lifetime than the trait (unfortunately they don't match yet).

Trait Implementations

impl<'a, E: Debug + 'a, Ty: Debug, Ix: Debug + 'a> Debug for EdgeReference<'a, E, Ty, Ix>
[src]

Formats the value using the given formatter.

impl<'a, E, Ty, Ix: Copy> Clone for EdgeReference<'a, E, Ty, Ix>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, E, Ty, Ix: Copy> Copy for EdgeReference<'a, E, Ty, Ix>
[src]

impl<'a, E, Ty, Ix> EdgeRef for EdgeReference<'a, E, Ty, Ix> where
    Ty: EdgeType,
    Ix: IndexType
[src]

The source node of the edge.

The target node of the edge.

A reference to the weight of the edge.

The edge’s identifier.