Function sodiumoxide::hex::decode[][src]

pub fn decode<T: AsRef<[u8]>>(hex: T) -> Result<Vec<u8>, ()>
Expand description

Parses a hexadecimal string into a byte sequence.

Fails if hex.len() is not even or if hex contains characters not in [0-9a-fA-F].