pub fn hex2array<const N: usize>(hex: &str) -> ArrayBytesResult<[u8; N]>
Expand description

Just like hex2bytes but to a fixed length array.

Examples

assert_eq!(
	array_bytes::hex2array("0x4c6f7665204a616e6520466f7265766572").unwrap(),
	*b"Love Jane Forever"
);