pub fn hex2bytes(hex: impl AsRef<str>) -> ArrayBytesResult<Bytes>
Hex to Bytes
Hex
Bytes
Return error while length is a odd number or any byte out of radix
assert_eq!( array_bytes::hex2bytes("0x4c6f7665204a616e6520466f7265766572").unwrap(), *b"Love Jane Forever" );