bytemuck::checked

Function cast_slice

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

Cast &[A] into &[B].

ยงPanics

This is try_cast_slice but will panic on error.