Function bytemuck::cast_mut

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

Cast &mut A into &mut B.

§Panics

This is try_cast_mut but will panic on error.