bytemuck::checked

Function from_bytes_mut

source
pub fn from_bytes_mut<T: NoUninit + CheckedBitPattern>(s: &mut [u8]) -> &mut T
Expand description

Re-interprets &mut [u8] as &mut T.

ยงPanics

This is try_from_bytes_mut but will panic on error.