Struct petgraph::stable_graph::EdgeReference [] [src]

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

Reference to a StableGraph edge.

Methods

impl<'a, Ix, E> EdgeReference<'a, E, Ix> where
    Ix: IndexType
[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, Ix: Debug> Debug for EdgeReference<'a, E, Ix>
[src]

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, Ix, E> EdgeRef for EdgeReference<'a, E, Ix> where
    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.

Auto Trait Implementations

impl<'a, E, Ix> Send for EdgeReference<'a, E, Ix> where
    E: Sync,
    Ix: Send

impl<'a, E, Ix> Sync for EdgeReference<'a, E, Ix> where
    E: Sync,
    Ix: Sync