Function bytemuck::cast_ref

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

Cast &A into &B.

§Panics

This is try_cast_ref but will panic on error.