Function shadow_pod::as_u8_slice_mut

source ·
pub unsafe fn as_u8_slice_mut<T>(x: &mut T) -> &mut [MaybeUninit<u8>]
where T: Pod,
Expand description

Cast as a mut slice of raw bytes.

Some bytes may be uninitialized if T has padding.

§Safety

See to_u8_slice_mut.