Function base65536::decode
[−]
[src]
pub fn decode<T: ?Sized + AsRef<str>>(input: &T) -> DecodeResult<Vec<u8>>
Decode from string reference as octets.
Convenience method for decode_config(input, Config::default())
Note that decode
and friends are very strict by default, even failing
on line breaks, as to match behaviour with the original implementation.
To prevent this, instead use with the ignore_garbage
option, as such:
let output = decode_config(input, Config::new().ignore_garbage(true))?;
If you're OK with that, you can use decode as such:
let output = decode(input)?;