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]
impl<'a> Base64Display<'a>
pub fn with_config(
bytes: &[u8],
config: Config
) -> Result<Base64Display, DisplayError>
[src]
pub fn with_config(
bytes: &[u8],
config: Config
) -> Result<Base64Display, DisplayError>
Create a Base64Display
with the provided config.
pub fn standard(bytes: &[u8]) -> Base64Display
[src]
pub fn standard(bytes: &[u8]) -> Base64Display
Convenience method for creating a Base64Display
with the STANDARD
configuration.
pub fn url_safe(bytes: &[u8]) -> Base64Display
[src]
pub fn url_safe(bytes: &[u8]) -> Base64Display
Convenience method for creating a Base64Display
with the URL_SAFE
configuration.
Trait Implementations
impl<'a> Display for Base64Display<'a>
[src]
impl<'a> Display for Base64Display<'a>
Auto Trait Implementations
impl<'a> Send for Base64Display<'a>
impl<'a> Send for Base64Display<'a>
impl<'a> Sync for Base64Display<'a>
impl<'a> Sync for Base64Display<'a>