(&self, init: U, mut f: impl FnMut(U, usize, usize, &T) -> U)
| 791 | |
| 792 | #[inline] |
| 793 | pub fn fold_cells<U>(&self, init: U, mut f: impl FnMut(U, usize, usize, &T) -> U) -> U { |
| 794 | self.cells() |
| 795 | .fold(init, |acc, (row, col, value)| f(acc, row, col, value)) |
| 796 | } |
| 797 | |
| 798 | #[inline] |
| 799 | pub fn min_cell(&self) -> Option<(usize, usize, T)> |