Function try_cast_slice_mut
pub fn try_cast_slice_mut<A, B>(
a: &mut [A],
) -> Result<&mut [B], CheckedCastError> ⓘ
Available on crate feature
dep_bytemuck
only.Expand description
Try to convert &mut [A]
into &mut [B]
(possibly with a change in
length).
As try_cast_slice
, but &mut
.