Function bytemuck::internal::from_bytes

source ·
pub(crate) unsafe fn from_bytes<T: Copy>(s: &[u8]) -> &T
Expand description

Re-interprets &[u8] as &T.

§Panics

This is try_from_bytes but will panic on error.