Function bytemuck::cast_slice_mut

source ·
pub fn cast_slice_mut<A: NoUninit + AnyBitPattern, B: NoUninit + AnyBitPattern>(
    a: &mut [A]
) -> &mut [B]
Expand description

Cast &mut [T] into &mut [U].

§Panics

This is try_cast_slice_mut but will panic on error.