Function bytemuck::from_bytes[][src]

pub fn from_bytes<T: Pod>(s: &[u8]) -> &T

Re-interprets &[u8] as &T.

Panics

This is try_from_bytes but will panic on error.