Function bytemuck::internal::try_cast_mut

source ยท
pub(crate) unsafe fn try_cast_mut<A: Copy, B: Copy>(
    a: &mut A,
) -> Result<&mut B, PodCastError>
Expand description

Try to convert a &mut T into &mut U.

As try_cast_ref, but mut.