[][src]Function lokacore::cast_slice

pub fn cast_slice<A, B>(a: &[A]) -> &[B] where
    A: Pod,
    B: Pod

Cast &[T] into &[U].

Panics

This is try_cast_slice with an unwrap.