devela::_dep::bytemuck::checked

Function try_cast_mut

pub fn try_cast_mut<A, B>(a: &mut A) -> Result<&mut B, CheckedCastError> 
Available on crate feature dep_bytemuck only.
Expand description

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

As try_cast_ref, but mut.