Function bytemuck::cast_ref[][src]

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

Cast &T into &U.

Panics

This is try_cast_ref but will panic on error.