pub trait DataMapMut: DataMap {
// 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>;
}Expand description
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§
Source§impl<'a, G> DataMapMut for &'a mut Gwhere
G: DataMapMut,
impl<'a, G> DataMapMut for &'a mut Gwhere
G: DataMapMut,
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>
Implementors§
impl<'a, G> DataMapMut for Frozen<'a, G>where
G: DataMapMut,
impl<E, Ix: IndexType> DataMapMut for List<E, Ix>
impl<G> DataMapMut for Reversed<G>where
G: DataMapMut,
impl<G: Visitable + DataMapMut> DataMapMut for Acyclic<G>
impl<N, E, Ty, Ix> DataMapMut for Graph<N, E, Ty, Ix>
impl<N, E, Ty, Ix> DataMapMut for StableGraph<N, E, Ty, Ix>
Available on crate feature
stable_graph only.