Function bytemuck::internal::cast_ref

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

Cast &A into &B.

§Panics

This is try_cast_ref but will panic on error.