#[non_exhaustive]pub enum VectorBackend {
Scalar,
Avx2,
Neon,
}Expand description
What backend will be used when targeting the current CPU?
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scalar
The fallback scalar backend (doesn’t use vector instructions).
Avx2
A vector backend targeting AVX2.
Neon
A vector backend targeting ARM Neon.
Trait Implementations§
Source§impl Clone for VectorBackend
impl Clone for VectorBackend
Source§fn clone(&self) -> VectorBackend
fn clone(&self) -> VectorBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorBackend
impl Debug for VectorBackend
Source§impl Hash for VectorBackend
impl Hash for VectorBackend
Source§impl PartialEq for VectorBackend
impl PartialEq for VectorBackend
impl Copy for VectorBackend
impl Eq for VectorBackend
impl StructuralPartialEq for VectorBackend
Auto Trait Implementations§
impl Freeze for VectorBackend
impl RefUnwindSafe for VectorBackend
impl Send for VectorBackend
impl Sync for VectorBackend
impl Unpin for VectorBackend
impl UnwindSafe for VectorBackend
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