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) -> Self

Create a Simd engine for the STANDARD alphabet, detecting the instruction set once.

fn url_safe(config: GeneralPurposeConfig) -> Self

Create a Simd engine 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::Config
fn padding(&self) -> Symbol

Auto Trait Implementations

impl Freeze for Simd

impl RefUnwindSafe for Simd

impl Send for Simd

impl Sync for Simd

impl Unpin for Simd

impl UnsafeUnpin for Simd

impl UnwindSafe for Simd

Blanket Implementations

impl<T> Any for Simd where T: 'static + ?Sized,

impl<T> Borrow<T> for Simd where T: ?Sized,

impl<T> BorrowMut<T> for Simd where T: ?Sized,

impl<T> CloneToUninit for Simd where T: Clone,

impl<T> From<T> for Simd

impl<T> ToOwned for Simd where T: Clone,

impl<T, U> Into<U> for Simd where U: From<T>,

impl<T, U> TryFrom<U> for Simd where U: Into<T>,

impl<T, U> TryInto<U> for Simd where U: TryFrom<T>,