Function bevy::core::cast_slice

source ·
pub fn cast_slice<A, B>(a: &[A]) -> &[B]
where A: NoUninit, B: AnyBitPattern,
Expand description

Cast &[A] into &[B].

Panics

This is try_cast_slice but will panic on error.