Function bytemuck::internal::pod_read_unaligned

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

Reads the slice into a T value.

§Panics

  • This is like try_pod_read_unaligned but will panic on failure.