Function boxed_slice_as_array_unchecked
Source 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
.