[][src]Function hexutil::read_hex

pub fn read_hex(s: &str) -> Result<Vec<u8>, ParseHexError>

Parses a given hex string and return a list of bytes if succeeded. The string can optionally start by 0x, which indicates that it is a hex representation.