Function gfx_core::factory::cast_slice [−] [src]

ⓘImportant traits for &'a [u8]
pub fn cast_slice<A: Copy, B: Copy>(slice: &[A]) -> &[B]

Cast a slice from one POD type to another.