[][src]Function lokacore::cast_ref

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

Cast &T into &U.

Panics

This is try_cast_ref with an unwrap.