Function decode_hex
Source pub fn decode_hex(hex: &str) -> Result<Vec<u8>, HexError>
Expand description
Hex digits, with or without a 0x prefix and in either case, as bytes.
ยงErrors
Returns a HexError when the digits are not a whole number of bytes or a character
is not a hex digit.