pub fn try_cast_mut<A: NoUninit + AnyBitPattern, B: CheckedBitPattern + NoUninit>(
a: &mut A,
) -> Result<&mut B, CheckedCastError>
Expand description
Try to convert a &mut A
into &mut B
.
As try_cast_ref
, but mut
.
pub fn try_cast_mut<A: NoUninit + AnyBitPattern, B: CheckedBitPattern + NoUninit>(
a: &mut A,
) -> Result<&mut B, CheckedCastError>
Try to convert a &mut A
into &mut B
.
As try_cast_ref
, but mut
.