bytes_from_hex

Function bytes_from_hex 

Source
pub fn bytes_from_hex(hex: &str) -> Result<Vec<u8>, PacketError>
Expand description

Converts a hexadecimal string into a byte array

ยงErrors

Will return Err if string is not valid hexadecimal.