radix64 0.6.2

A base64 library by another name
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! This module is included whenever running on an architecture that doesn't have a specialized module.

use crate::{Std, StdNoPad, UrlSafe, UrlSafeNoPad, Crypt, Fast};
use crate::encode::block::{IntoBlockEncoder, ScalarBlockEncoder};

macro_rules! impl_into_block_encoder {
    ($( $cfg:ident ),+) => {$(
        impl IntoBlockEncoder for $cfg {
            type BlockEncoder = ScalarBlockEncoder<Self>;

            #[inline]
            fn into_block_encoder(self) -> Self::BlockEncoder {
                ScalarBlockEncoder::new(self)
            }
        }
    )+}
}
impl_into_block_encoder!(Std, StdNoPad, UrlSafe, UrlSafeNoPad, Crypt, Fast);