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

Method swap_flat

perro_source/core/perro_structs/src/structs/matrix/mod.rs:749–755  ·  view source on GitHub ↗
(&mut self, a: usize, b: usize)

Source from the content-addressed store, hash-verified

747
748 #[inline]
749 pub fn swap_flat(&mut self, a: usize, b: usize) -> bool {
750 if a >= Self::flat_len() || b >= Self::flat_len() {
751 return false;
752 }
753 self.as_mut_slice().swap(a, b);
754 true
755 }
756
757 #[inline]
758 pub fn to_vec(&self) -> Vec<T>

Callers

nothing calls this directly

Calls 1

as_mut_sliceMethod · 0.80

Tested by

no test coverage detected