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

Method count_cells

perro_source/core/perro_structs/src/structs/matrix/mod.rs:668–672  ·  view source on GitHub ↗
(&self, mut f: impl FnMut(usize, usize, &T) -> bool)

Source from the content-addressed store, hash-verified

666
667 #[inline]
668 pub fn count_cells(&self, mut f: impl FnMut(usize, usize, &T) -> bool) -> usize {
669 self.cells()
670 .filter(|(row, col, value)| f(*row, *col, value))
671 .count()
672 }
673
674 #[inline]
675 pub fn find_cell(&self, mut f: impl FnMut(usize, usize, &T) -> bool) -> Option<(usize, usize)> {

Callers

nothing calls this directly

Calls 1

cellsMethod · 0.80

Tested by

no test coverage detected