Function bytes_fixed_from_vec

Source
pub fn bytes_fixed_from_vec<const N: usize>(
    value: &[u8],
) -> Result<[u8; N], EncodingError>
Expand description

Helper to convert a vec to an array, and fail with an encoding error when needed