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

Method fold_cells

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

Source from the content-addressed store, hash-verified

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)>

Callers

nothing calls this directly

Calls 1

cellsMethod · 0.80

Tested by

no test coverage detected