pub fn decode_array<const N: usize>(
data: impl AsRef<[u8]>,
) -> Result<[u8; N], DecodeError>Expand description
Decodes a hexadecimal string into a fixed-size byte array.
ยงErrors
Returns DecodeError if the input length is not exactly 2 * N or contains
non-hex characters.