Skip to main content

unhex

Function unhex 

Source
pub fn unhex(s: &str) -> Option<Vec<u8>>
Expand description

Decode hex, either case. None on an odd length or any non-hex byte, so a malformed trace id matches nothing rather than matching a truncated prefix.