Function cfg_utils::vec_to_fixed_array
source · pub fn vec_to_fixed_array<const S: usize>(src: impl AsRef<[u8]>) -> [u8; S]
Expand description
Build a fixed-size array using as many elements from src
as possible
without overflowing and ensuring that the array is 0 padded in the case
where src.len()
is smaller than S.