pub fn decode(string: impl AsRef<str>) -> Result<Vec<u8>>Expand description
Decodes a string using the default checksum settings.
Use this only if the default checksum setting was used when encoding the string (e.g., if
encode was used). All other encoding settings are ignored when
decoding.
ยงExamples
let encoded = bunk::encode(b"aftersun");
let decoded = bunk::decode(encoded)?;
assert_eq!(decoded, b"aftersun");