usesuper::cast::Cast;impl<T, const N:usize>Cast<Vec<T>>for [T; N] {/// Move the array into a vector.
/// Compare to `.to_vec()`, the function doesn't require `Clone` trait.
fncast(self)->Vec<T>{letmut result =Vec::with_capacity(N);for i inself{
result.push(i);}
result
}}