#[non_exhaustive]pub enum X86Level {
V1,
V2,
V3,
V4,
}Expand description
An x86-64 microarchitecture level (the psABI’s x86-64-v1 to v4).
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.
V1
The x86-64 baseline (SSE2).
V2
Adds SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, CMPXCHG16B.
V3
Adds AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, XSAVE.
V4
Adds AVX-512 F, BW, CD, DQ, VL.
Trait Implementations§
impl Copy for X86Level
impl Eq for X86Level
Source§impl Ord for X86Level
impl Ord for X86Level
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for X86Level
impl PartialOrd for X86Level
impl StructuralPartialEq for X86Level
Auto Trait Implementations§
impl Forget for X86Level
impl Freeze for X86Level
impl Move for X86Level
impl RefUnwindSafe for X86Level
impl Send for X86Level
impl Sync for X86Level
impl Unpin for X86Level
impl UnsafeUnpin for X86Level
impl UnwindSafe for X86Level
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