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

Method as_bytes

perro_source/core/perro_structs/src/structs/matrix/mod.rs:1215–1217  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1213
1214 #[inline]
1215 pub fn as_bytes(&self) -> &[u8] {
1216 bytemuck::cast_slice(self.as_slice())
1217 }
1218
1219 #[inline]
1220 pub fn write_packed(&self, out: &mut [f32]) -> Option<usize> {

Callers 1

from_hexMethod · 0.45

Calls 2

copy_from_sliceMethod · 0.80
as_sliceMethod · 0.45

Tested by

no test coverage detected