Module prelude
Preconfigured engines for common use cases.
These are re-exports of const engines in [crate::engine::general_purpose], renamed with a BASE64_
prefix for those who prefer to use the entire path to a name.
All of these engine presets enforce no trailing bits when decoding.
Examples
use ;
assert_eq!;
Traits
-
Engine
An
Engineprovides low-level encoding and decoding operations that all other higher-level parts of the API use. Users of the library will generally not need to implement this.
Constants
-
BASE64_STANDARD
A
GeneralPurposeengine using thealphabet::STANDARDbase64 alphabet andPADconfig. -
BASE64_STANDARD_NO_PAD
A
GeneralPurposeengine using thealphabet::STANDARDbase64 alphabet andNO_PADconfig. -
BASE64_URL_SAFE
A
GeneralPurposeengine using thealphabet::URL_SAFEbase64 alphabet andPADconfig. -
BASE64_URL_SAFE_NO_PAD
A
GeneralPurposeengine using thealphabet::URL_SAFEbase64 alphabet andNO_PADconfig.