decode

Function decode 

Source
pub fn decode<V>(
    v: &str,
    out: impl FnOnce(&[u8]) -> V,
) -> Result<V, FromHexError>
Expand description

Decodes a hex string to a byte slice.

This accepts both lower and upper case strings. The resulting byte slice is passed to the closure.