hex_decode

Function hex_decode 

Source
pub fn hex_decode(text: &str) -> Result<String, String>
Expand description

The inverse of hex_encode, or why it is not one.

Both cases a caller can hit are named rather than collapsed into “bad input”: an odd length is a truncated string and a stray character is a different encoding, and those are different mistakes. The bytes must also be UTF-8, because a Beck Str is.