Trait petgraph::data::DataMapMut
[−]
[src]
pub trait DataMapMut: DataMap { fn node_weight_mut(
&mut self,
id: Self::NodeId
) -> Option<&mut Self::NodeWeight>; fn edge_weight_mut(
&mut self,
id: Self::EdgeId
) -> Option<&mut Self::EdgeWeight>; }
Access node and edge weights mutably.
Required Methods
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>
Implementations on Foreign Types
impl<'a, G> DataMapMut for &'a mut G where
G: DataMapMut,
[src]
G: DataMapMut,
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>
[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>
[src]
Implementors
impl<G> DataMapMut for Reversed<G> where
G: DataMapMut,impl<N, E, Ty, Ix> DataMapMut for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,impl<N, E, Ty, Ix> DataMapMut for StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,impl<'a, G> DataMapMut for Frozen<'a, G> where
G: DataMapMut,