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]
Ty: EdgeType,
pub fn weight(&self) -> &'a E[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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<'a, E, Ty, Ix: Copy> Clone for EdgeReference<'a, E, Ty, Ix>[src]
fn clone(&self) -> Self[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<'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]
Ty: EdgeType,
Ix: IndexType,
type NodeId = NodeIndex<Ix>
type EdgeId = EdgeIndex
type Weight = E
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) -> &E[src]
A reference to the weight of the edge.
fn id(&self) -> Self::EdgeId[src]
The edge’s identifier.