Trait bevy_internal::utils::petgraph::data::DataMapMut
source · 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>
Object Safety§
This trait is not object safe.