Function bytemuck::cast_slice[][src]

pub fn cast_slice<A: Pod, B: Pod>(a: &[A]) -> &[B]
Expand description

Cast &[A] into &[B].

Panics

This is try_cast_slice but will panic on error.