#[repr(u8)]pub enum Base64Backend {
Scalar = 0,
Neon = 1,
Ssse3 = 2,
Avx2 = 3,
Wasm128 = 4,
}Expand description
A Base64 SIMD implementation compiled into this crate.
Variants§
Scalar = 0
Portable scalar code.
Neon = 1
AArch64 NEON, processing 24 input or 32 encoded bytes at a time.
Ssse3 = 2
x86/x86-64 SSSE3, processing 12 input or 16 encoded bytes at a time.
Avx2 = 3
x86/x86-64 AVX2 plus SSSE3, processing 24 input or 32 encoded bytes at a time and using SSSE3 for the remaining vector-sized prefix.
Wasm128 = 4
WebAssembly SIMD128, processing 12 input or 16 encoded bytes at a time.
Implementations§
Source§impl Base64Backend
impl Base64Backend
Sourcepub const ALL: &'static [Base64Backend]
pub const ALL: &'static [Base64Backend]
Every backend compiled for the current architecture.
Sourcepub fn is_available(self) -> bool
pub fn is_available(self) -> bool
Whether this CPU can execute the backend now.
Trait Implementations§
Source§impl Clone for Base64Backend
impl Clone for Base64Backend
Source§fn clone(&self) -> Base64Backend
fn clone(&self) -> Base64Backend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Base64Backend
Source§impl Debug for Base64Backend
impl Debug for Base64Backend
Source§impl Display for Base64Backend
impl Display for Base64Backend
impl Eq for Base64Backend
Source§impl PartialEq for Base64Backend
impl PartialEq for Base64Backend
impl StructuralPartialEq for Base64Backend
Auto Trait Implementations§
impl Freeze for Base64Backend
impl RefUnwindSafe for Base64Backend
impl Send for Base64Backend
impl Sync for Base64Backend
impl Unpin for Base64Backend
impl UnsafeUnpin for Base64Backend
impl UnwindSafe for Base64Backend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more