MCPcopy Create free account
hub / github.com/PerroEngine/Perro / cells_mut

Method cells_mut

perro_source/core/perro_structs/src/structs/matrix/mod.rs:411–416  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

409
410 #[inline]
411 pub fn cells_mut(&mut self) -> impl Iterator<Item = (usize, usize, &mut T)> {
412 self.as_mut_slice()
413 .iter_mut()
414 .enumerate()
415 .map(|(index, value)| (index / COLS, index % COLS, value))
416 }
417
418 #[inline]
419 pub fn for_positions(&self, mut f: impl FnMut(usize, usize)) {

Callers 1

fill_withMethod · 0.80

Calls 2

as_mut_sliceMethod · 0.80
iter_mutMethod · 0.45

Tested by

no test coverage detected