Module base64::display[][src]

Enables base64’d output anywhere you might use a Display implementation, like a format string.

use base64::display::Base64Display;

let data = vec![0x0, 0x1, 0x2, 0x3];
let wrapper = Base64Display::with_config(&data, base64::STANDARD);

assert_eq!("base64: AAECAw==", format!("base64: {}", wrapper));

Structs

Base64Display

A convenience wrapper for base64’ing bytes into a format string without heap allocation.