Function shadow_pod::as_u8_slice
source ยท pub fn as_u8_slice<T>(x: &T) -> &[MaybeUninit<u8>]where
T: Pod,
Expand description
Cast as a slice of raw bytes.
Some bytes may be uninitialized if T has padding.
pub fn as_u8_slice<T>(x: &T) -> &[MaybeUninit<u8>]where
T: Pod,
Cast as a slice of raw bytes.
Some bytes may be uninitialized if T has padding.