Skip to main content

hex_decode

Function hex_decode 

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

Decode a 0x-prefixed (or bare) hex string into bytes.

Returns None if the string contains invalid hex characters or has an odd length.