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

Method cells

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

Source from the content-addressed store, hash-verified

401
402 #[inline]
403 pub fn cells(&self) -> impl Iterator<Item = (usize, usize, &T)> {
404 self.as_slice()
405 .iter()
406 .enumerate()
407 .map(|(index, value)| (index / COLS, index % COLS, value))
408 }
409
410 #[inline]
411 pub fn cells_mut(&mut self) -> impl Iterator<Item = (usize, usize, &mut T)> {

Callers 7

any_cellMethod · 0.80
all_cellsMethod · 0.80
count_cellsMethod · 0.80
find_cellMethod · 0.80
fold_cellsMethod · 0.80
min_cellMethod · 0.80
max_cellMethod · 0.80

Calls 2

iterMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected