bytemuck::checked

Function from_bytes

Source
pub fn from_bytes<T: CheckedBitPattern>(s: &[u8]) -> &T
Expand description

Re-interprets &[u8] as &T.

ยงPanics

This is try_from_bytes but will panic on error.