Function bytemuck::try_cast_mut

source ·
pub fn try_cast_mut<A: NoUninit + AnyBitPattern, B: NoUninit + AnyBitPattern>(
    a: &mut A
) -> Result<&mut B, PodCastError>
Expand description

Try to convert a &mut A into &mut B.

As try_cast_ref, but mut.