Function bytemuck::from_bytes_mut

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

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

§Panics

This is like try_from_bytes_mut but will panic on error.