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

Method find_cell

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

Source from the content-addressed store, hash-verified

673
674 #[inline]
675 pub fn find_cell(&self, mut f: impl FnMut(usize, usize, &T) -> bool) -> Option<(usize, usize)> {
676 self.cells()
677 .find(|(row, col, value)| f(*row, *col, value))
678 .map(|(row, col, _)| (row, col))
679 }
680
681 #[inline]
682 pub fn fill(&mut self, value: T) -> &mut Self

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
cellsMethod · 0.80

Tested by

no test coverage detected