Struct Avx2
pub struct Avx2 { /* private fields */ }
A base64 engine that unconditionally uses AVX2, without runtime detection.
This works in no_std builds. Because it does not check for AVX2 support, it must only be used
on a CPU that has it. Only the STANDARD and URL_SAFE alphabets are accelerated, so it is
constructed with the Avx2::standard / Avx2::url_safe (checked) or
Avx2::standard_unchecked / Avx2::url_safe_unchecked constructors.
Implementations
impl Avx2
fn standard(config: GeneralPurposeConfig) -> Option<Self>Create an
Avx2engine for the STANDARD alphabet if the running CPU supports AVX2, elseNone.Requires the
stdfeature for the detection; inno_stduseAvx2::standard_unchecked.fn url_safe(config: GeneralPurposeConfig) -> Option<Self>Create an
Avx2engine for the URL_SAFE alphabet if the running CPU supports AVX2, elseNone.Requires the
stdfeature for the detection; inno_stduseAvx2::url_safe_unchecked.const unsafe fn standard_unchecked(config: GeneralPurposeConfig) -> SelfCreate an
Avx2engine for the STANDARD alphabet without checking for AVX2 support.Safety
The CPU that will run encode/decode must support AVX2. Using the engine on a CPU without AVX2 is undefined behavior.
const unsafe fn url_safe_unchecked(config: GeneralPurposeConfig) -> SelfCreate an
Avx2engine for the URL_SAFE alphabet without checking for AVX2 support.Safety
The CPU that will run encode/decode must support AVX2. Using the engine on a CPU without AVX2 is undefined behavior.
Trait Implementations
impl Clone for Avx2
fn clone(&self) -> Self
impl Debug for Avx2
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Engine for Avx2
type Config = GeneralPurposeConfig;type DecodeEstimate = GeneralPurposeEstimate;fn config(&self) -> &Self::Configfn padding(&self) -> Symbol