bytemuck::checked

Function cast_mut

Source
pub fn cast_mut<A: NoUninit + AnyBitPattern, B: NoUninit + CheckedBitPattern>(
    a: &mut A,
) -> &mut B
Expand description

Cast &mut A into &mut B.

ยงPanics

This is try_cast_mut but will panic on error.