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

Method resize

perro_source/core/perro_structs/src/structs/matrix/mod.rs:832–840  ·  view source on GitHub ↗
(
        self,
        fill: T,
    )

Source from the content-addressed store, hash-verified

830
831 #[inline]
832 pub fn resize<const NEW_ROWS: usize, const NEW_COLS: usize>(
833 self,
834 fill: T,
835 ) -> Matrix<NEW_ROWS, NEW_COLS, T>
836 where
837 T: Copy,
838 {
839 self.resize_with(|_, _| fill)
840 }
841
842 #[inline]
843 pub fn resize_default<const NEW_ROWS: usize, const NEW_COLS: usize>(

Callers

nothing calls this directly

Calls 1

resize_withMethod · 0.80

Tested by

no test coverage detected