Function bytemuck::internal::cast_ref

source ·
pub(crate) unsafe fn cast_ref<A: Copy, B: Copy>(a: &A) -> &B
Expand description

Cast &T into &U.

§Panics

This is try_cast_ref but will panic on error.