hex2bin

Function hex2bin 

Source
pub fn hex2bin(s: &str) -> Result<Vec<u8>>
Expand description

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.