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