Struct Base64Display
pub struct Base64Display<'a, 'e, E: Engine> { /* private fields */ }
A convenience wrapper for base64'ing bytes into a format string without heap allocation.
Implementations
impl<'a, 'e, E: Engine> Base64Display<'a, 'e, E>
fn new(bytes: &'a [u8], engine: &'e E) -> Base64Display<'a, 'e, E>Create a
Base64Displaywith the provided engine.
Trait Implementations
impl<'a, 'e, E: Engine> Display for Base64Display<'a, 'e, E>
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>
Auto Trait Implementations
impl<'a, 'e, E> Freeze for Base64Display<'a, 'e, E>
where
ChunkedEncoder<'e, E>: Freeze,
impl<'a, 'e, E> RefUnwindSafe for Base64Display<'a, 'e, E>
where
ChunkedEncoder<'e, E>: RefUnwindSafe,
impl<'a, 'e, E> Send for Base64Display<'a, 'e, E>
where
ChunkedEncoder<'e, E>: Send,
impl<'a, 'e, E> Sync for Base64Display<'a, 'e, E>
where
ChunkedEncoder<'e, E>: Sync,
impl<'a, 'e, E> Unpin for Base64Display<'a, 'e, E>
where
ChunkedEncoder<'e, E>: Unpin,
impl<'a, 'e, E> UnsafeUnpin for Base64Display<'a, 'e, E>
where
ChunkedEncoder<'e, E>: UnsafeUnpin,
impl<'a, 'e, E> UnwindSafe for Base64Display<'a, 'e, E>
where
ChunkedEncoder<'e, E>: UnwindSafe,
Blanket Implementations
impl<T> Any for Base64Display<'a, 'e, E>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Base64Display<'a, 'e, E>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Base64Display<'a, 'e, E>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Base64Display<'a, 'e, E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for Base64Display<'a, 'e, E>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for Base64Display<'a, 'e, E>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Base64Display<'a, 'e, E>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Base64Display<'a, 'e, E>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>