Function bytemuck::checked::try_cast_slice_mut

source ยท
pub fn try_cast_slice_mut<A: NoUninit + AnyBitPattern, B: CheckedBitPattern + NoUninit>(
    a: &mut [A],
) -> Result<&mut [B], CheckedCastError>
Expand description

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

As try_cast_slice, but &mut.