MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / get_mut

Method get_mut

splashsurf_lib/src/topology.rs:384–386  ·  view source on GitHub ↗

Returns a mutable reference to the value stored for the given axis

(&mut self, axis: &DirectedAxis)

Source from the content-addressed store, hash-verified

382
383 /// Returns a mutable reference to the value stored for the given axis
384 pub fn get_mut(&mut self, axis: &DirectedAxis) -> &mut T {
385 &mut self.data[axis.to_usize()]
386 }
387
388 /// Returns an iterator of all unique directed axes and references to the corresponding stored value
389 pub fn iter(&self) -> impl Iterator<Item = (&DirectedAxis, &T)> {

Callers 3

leaveMethod · 0.80
get_neighbors_mutMethod · 0.80

Calls 1

to_usizeMethod · 0.80

Tested by

no test coverage detected