Struct base64::display::Base64Display
[−]
[src]
pub struct Base64Display<'a> { /* fields omitted */ }
A convenience wrapper for base64'ing bytes into a format string without heap allocation.
Methods
impl<'a> Base64Display<'a>
[src]
pub fn with_config(
bytes: &[u8],
config: Config
) -> Result<Base64Display, DisplayError>
[src]
bytes: &[u8],
config: Config
) -> Result<Base64Display, DisplayError>
Create a Base64Display
with the provided config.
pub fn standard(bytes: &[u8]) -> Base64Display
[src]
Convenience method for creating a Base64Display
with the STANDARD
configuration.
pub fn url_safe(bytes: &[u8]) -> Base64Display
[src]
Convenience method for creating a Base64Display
with the URL_SAFE
configuration.