Function bytemuck::internal::cast_slice

source ·
pub(crate) unsafe fn cast_slice<A: Copy, B: Copy>(a: &[A]) -> &[B]
Expand description

Cast &[A] into &[B].

§Panics

This is try_cast_slice but will panic on error.