pub fn decode_hex(text: &str) -> Result<Vec<u8>, Error>
Decodes hexadecimal text into bytes.
Both uppercase and lowercase digits are accepted. Invalid input is reported as io::ErrorKind::InvalidData.
io::ErrorKind::InvalidData