Skip to main content

decode_hex

Function decode_hex 

Source
pub fn decode_hex(input: &str) -> Result<Bytes, CoreError>
Expand description

Decodes a hex-encoded string.

§Arguments

  • input - The hex-encoded string

§Returns

The decoded bytes as Bytes, or an error message if decoding fails.