pub fn vec_to_boxed_array<T, const N: usize>(vec: Vec<T>) -> Box<[T; N]>
Expand description

Converts a vector of elements to a boxed one. Semantically equivalent to vector.into_boxed_slice().try_into().unwrap().