Function array_bytes::vec2array_unchecked

source ·
pub fn vec2array_unchecked<T, const N: usize>(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]);