unsafe fn boxed_slice_as_array_unchecked<T, A: Allocator, const N: usize>(
    boxed_slice: Box<[T], A>
) -> Box<[T; N], A>
Expand description

Casts a boxed slice to a boxed array.

Safety

boxed_slice.len() must be exactly N.