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

Method fill_with

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

Source from the content-addressed store, hash-verified

689
690 #[inline]
691 pub fn fill_with(&mut self, mut f: impl FnMut(usize, usize) -> T) -> &mut Self {
692 for (row, col, value) in self.cells_mut() {
693 *value = f(row, col);
694 }
695 self
696 }
697
698 #[inline]
699 pub fn copy_from_slice(&mut self, slice: &[T]) -> bool

Calls 1

cells_mutMethod · 0.80