Struct petgraph::graph::EdgeReference
[−]
[src]
pub struct EdgeReference<'a, E: 'a, Ix: IndexType = DefaultIx> { /* fields omitted */ }
Reference to a Graph
edge.
Methods
impl<'a, Ix, E> EdgeReference<'a, E, Ix> where Ix: IndexType
[src]
fn weight(&self) -> &'a E
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, Ix: IndexType> Clone for EdgeReference<'a, E, Ix>
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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]
fn eq(&self, rhs: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.