pub enum TargetArch {
X86_64Sse,
X86_64Sse2,
X86_64Avx,
X86_64Avx2,
Aarch64Neon,
Generic,
}Expand description
Target architecture for vectorization decisions.
Variants§
X86_64Sse
x86_64 with SSE instructions (128-bit).
X86_64Sse2
x86_64 with SSE2 instructions (128-bit).
X86_64Avx
x86_64 with AVX instructions (256-bit).
X86_64Avx2
x86_64 with AVX2 instructions (256-bit).
Aarch64Neon
aarch64 with NEON instructions (128-bit).
Generic
Generic target (no vectorization).
Trait Implementations§
Source§impl Clone for TargetArch
impl Clone for TargetArch
Source§fn clone(&self) -> TargetArch
fn clone(&self) -> TargetArch
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 moreSource§impl Debug for TargetArch
impl Debug for TargetArch
Source§impl Default for TargetArch
impl Default for TargetArch
Source§impl<'de> Deserialize<'de> for TargetArch
impl<'de> Deserialize<'de> for TargetArch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TargetArch
impl Hash for TargetArch
Source§impl PartialEq for TargetArch
impl PartialEq for TargetArch
Source§fn eq(&self, other: &TargetArch) -> bool
fn eq(&self, other: &TargetArch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TargetArch
impl Serialize for TargetArch
impl Copy for TargetArch
impl Eq for TargetArch
impl StructuralPartialEq for TargetArch
Auto Trait Implementations§
impl Freeze for TargetArch
impl RefUnwindSafe for TargetArch
impl Send for TargetArch
impl Sync for TargetArch
impl Unpin for TargetArch
impl UnsafeUnpin for TargetArch
impl UnwindSafe for TargetArch
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