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>
[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>
[src]
Implementations on Foreign Types
impl<'a, G> DataMapMut for &'a mut G where
G: DataMapMut,
[src]
impl<'a, G> DataMapMut for &'a mut G where
G: DataMapMut,
[src]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<'a, G> DataMapMut for Frozen<'a, G> where
G: DataMapMut,
[src]
impl<'a, G> DataMapMut for Frozen<'a, G> where
G: DataMapMut,
[src]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]
impl<G> DataMapMut for Reversed<G> where
G: DataMapMut,
[src]
impl<G> DataMapMut for Reversed<G> where
G: DataMapMut,
[src]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]
impl<N, E, Ty, Ix> DataMapMut for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
impl<N, E, Ty, Ix> DataMapMut for Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]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]
impl<N, E, Ty, Ix> DataMapMut for StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
impl<N, E, Ty, Ix> DataMapMut for StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]