pub fn hex2bin(s: &str) -> Result<Vec<u8>>
Decodes a hexadecimal string into a byte vector. Decodes a hexadecimal string into a byte vector.
Any prefix of “0x” or “0X” is stripped, and whitespace or colons are ignored.