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]
impl<'a, Ix, E> EdgeReference<'a, E, Ix> where
Ix: IndexType, pub fn weight(&self) -> &'a E[src]
pub fn weight(&self) -> &'a EAccess 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]
impl<'a, E: Debug + 'a, Ix: Debug> Debug for EdgeReference<'a, E, Ix>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a, E, Ix: IndexType> Clone for EdgeReference<'a, E, Ix>[src]
impl<'a, E, Ix: IndexType> Clone for EdgeReference<'a, E, Ix>fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a, E, Ix: IndexType> Copy for EdgeReference<'a, E, Ix>[src]
impl<'a, E, Ix: IndexType> Copy for EdgeReference<'a, E, Ix>impl<'a, E, Ix: IndexType> PartialEq for EdgeReference<'a, E, Ix> where
E: PartialEq, [src]
impl<'a, E, Ix: IndexType> PartialEq for EdgeReference<'a, E, Ix> where
E: PartialEq, fn eq(&self, rhs: &Self) -> bool[src]
fn eq(&self, rhs: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl<'a, Ix, E> EdgeRef for EdgeReference<'a, E, Ix> where
Ix: IndexType, [src]
impl<'a, Ix, E> EdgeRef for EdgeReference<'a, E, Ix> where
Ix: IndexType, type NodeId = NodeIndex<Ix>
type EdgeId = EdgeIndex<Ix>
type Weight = E
fn source(&self) -> Self::NodeId[src]
fn source(&self) -> Self::NodeIdThe source node of the edge.
fn target(&self) -> Self::NodeId[src]
fn target(&self) -> Self::NodeIdThe target node of the edge.
fn weight(&self) -> &E[src]
fn weight(&self) -> &EA reference to the weight of the edge.
fn id(&self) -> Self::EdgeId[src]
fn id(&self) -> Self::EdgeIdThe 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> 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,
impl<'a, E, Ix> Sync for EdgeReference<'a, E, Ix> where
E: Sync,
Ix: Sync,