Function base64::decode_ws [] [src]

pub fn decode_ws(input: &str) -> Result<StringBase64Error>

Decode from string reference as utf8. Returns a Result containing a String. Ignores extraneous whitespace.

Example

extern crate base64;

fn main() {
    let text = base64::decode_ws("aG VsbG8gd2\r\n9ybGQ=").unwrap();
    println!("{}", text);
}