bytemuck

Function from_bytes

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

Re-interprets &[u8] as &T.

ยงPanics

This is like try_from_bytes but will panic on error.