bytemuck::checked

Function cast_ref

Source
pub fn cast_ref<A: NoUninit, B: CheckedBitPattern>(a: &A) -> &B
Expand description

Cast &A into &B.

ยงPanics

This is try_cast_ref but will panic on error.