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 try_from_bytes_mut but will panic on error.