Skip to main content

decode

Function decode 

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

Decode a hex string into an owned Vec<u8>.

ยงErrors

Returns an error if the input contains non-hex characters or has odd length.