Function bytemuck::try_cast_slice[][src]

pub fn try_cast_slice<A: Pod, B: Pod>(a: &[A]) -> Result<&[B], PodCastError>

Try to convert &[A] into &[B] (possibly with a change in length).

Failure