Skip to main content

decode

Function decode 

Source
pub fn decode(input: impl AsRef<[u8]>) -> Result<Vec<u8>, DecodeError>
Expand description

Decode a hex string to bytes.

Accepts both uppercase and lowercase hex characters. Returns Err on odd length or invalid characters.

Equivalent to hex::decode().