Function array_bytes::slice2array_unchecked

source ·
pub fn slice2array_unchecked<T, const N: usize>(slice: &[T]) -> [T; N]
where T: Copy,
Expand description

Just like slice2array but without the checking.

§Examples

assert_eq!(array_bytes::slice2array_unchecked::<_, 8>(&[0; 8]), [0; 8]);