bytemuck::allocation

Function cast_slice_arc

Source
pub fn cast_slice_arc<A: NoUninit + AnyBitPattern, B: NoUninit + AnyBitPattern>(
    input: Arc<[A]>,
) -> Arc<[B]>
Expand description

As try_cast_slice_arc, but unwraps for you.