/// Encode the input byte slice as Base64.
///
/// Writes the result into the provided destination slice, returning an
/// ASCII-encoded Base64 string value.
Encode the input byte slice as Base64.
Writes the result into the provided destination slice, returning an
ASCII-encoded Base64 string value.
Encode the input byte slice as Base64 . Writes the result into the provided destination slice returning an ASCII - encoded Base64 string value .
pub fn encode<'a>(self, src: &[u8], dst: &'a mut [u8]) -> Result<&'a str, B64Error> {
        match self {
            Self::B64 => B64::encode(src, dst),
            Self::Bcrypt => Base64Bcrypt::encode(src, dst),
            Self::Crypt => Base64Crypt::encode(src, dst),
        }
        .map_err(Into::into)
    }
pub fn encode < ' a > ( self , src : & [ u8 ] , dst : & ' a mut [ u8 ] ) -> Result < & ' a str , B64Error > { match self { Self :: B64 => B64 :: encode ( src , dst ) , Self :: Bcrypt => Base64Bcrypt :: encode ( src , dst ) , Self :: Crypt => Base64Crypt :: encode ( src , dst ) , } . map_err ( Into :: into ) }
Encode the input byte slice as Base64.
Encode the input byte slice as Base64 .
self
src
&[u8]
dst
&'a mut [u8]