domain::utils::base16

Function decode

source
pub fn decode<Octets>(s: &str) -> Result<Octets, DecodeError>
where Octets: FromBuilder, <Octets as FromBuilder>::Builder: OctetsBuilder + EmptyBuilder,
Expand description

Decodes a string with Base 16 encoded data.

The function attempts to decode the entire string and returns the result as an Octets value.