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

Just like vec2array but without the checking.

Examples

assert_eq!(array_bytes::vec2array_unchecked::<8, _>(vec![0; 8]), [0; 8]);