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.
pub fn from_bytes_mut<T: NoUninit + AnyBitPattern>(s: &mut [u8]) -> &mut T
Re-interprets &mut [u8]
as &mut T
.
This is like try_from_bytes_mut
but will panic on error.