bytemuck::allocation

Function cast_slice_rc

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

As try_cast_slice_rc, but unwraps for you.