Function bytemuck::checked::cast_ref

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

Cast &T into &U.

Panics

This is try_cast_ref but will panic on error.