Struct Simd
pub struct Simd { /* private fields */ }
A base64 engine that uses the best SIMD instruction set detected at runtime, falling back to the
scalar GeneralPurpose engine.
Requires the std feature (for runtime CPU-feature detection) and an x86_64 or aarch64
target. On other targets, use GeneralPurpose directly. Only the STANDARD and URL_SAFE
alphabets are accelerated, so it is constructed with Simd::standard / Simd::url_safe.
Implementations
impl Simd
fn standard(config: GeneralPurposeConfig) -> SelfCreate a
Simdengine for the STANDARD alphabet, detecting the instruction set once.fn url_safe(config: GeneralPurposeConfig) -> SelfCreate a
Simdengine for the URL_SAFE alphabet, detecting the instruction set once.
Trait Implementations
impl Clone for Simd
fn clone(&self) -> Self
impl Debug for Simd
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Engine for Simd
type Config = GeneralPurposeConfig;type DecodeEstimate = GeneralPurposeEstimate;fn config(&self) -> &Self::Configfn padding(&self) -> Symbol