pub fn vec2array<const N: usize, T>(vec: Vec<T>) -> Result<[T; N]>
Vec<T> to [T; N].
Vec<T>
[T; N]
assert_eq!(array_bytes::vec2array::<8, _>(vec![0; 8]), Ok([0; 8]));