(&self, mut f: impl FnMut(usize, usize, &T) -> bool)
| 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)> { |