pub enum Flag {
Show 71 variants ARM64_DEFAULT, ARM64_FLAGM, ARM64_FLAGM2, ARM64_FHM, ARM64_DOTPROD, ARM64_SHA3, ARM64_RDM, ARM64_LSE, ARM64_SHA256, ARM64_SHA512, ARM64_SHA1, ARM64_AES, ARM64_PMULL, ARM64_SPECRES, ARM64_SB, ARM64_FRINTTS, ARM64_LRCPC, ARM64_LRCPC2, ARM64_FCMA, ARM64_JSCVT, ARM64_PAUTH, ARM64_PAUTH2, ARM64_FPAC, ARM64_DPB, ARM64_DPB2, ARM64_BF16, ARM64_I8MM, ARM64_WFXT, ARM64_RPRES, ARM64_ECV, ARM64_AFP, ARM64_LSE2, ARM64_CSV2, ARM64_CVS3, ARM64_DIT, ARM64_FP16, ARM64_SSBS, ARM64_BTI, ARM64_SME, ARM64_SME2, ARM64_SMEF64F64, ARM64_SMEI16I64, ARM64_SMEF32F32, ARM64_SMEBI32I32, ARM64_SMEB16F32, ARM64_SMEF16F32, ARM64_SMEI8I32, ARM64_SMEI16I32, ARM64_ADVSIMD, ARM64_ADVSIMDHPFP, ARM64_CRC32, X86_64_DEFAULT, X86_64_SSE41, X86_64_FMA, X86_64_AVX, X86_64_AVX2, X86_64_AVX512F, X86_64_AVX512BW, X86_64_BMI1, X86_64_ROSETTA, X86_64_HASWELL, X86_64_IVYBRIDGE, X86_64_NEHALEM, SYSTEM_WIDE_DEFAULT, SYSTEM_WIDE_INTERNAL_INSTALL, SYSTEM_WIDE_CUSTOMER_INSTALL, SYSTEM_WIDE_LOCKDOWN, PER_PROCESS_DEFAULT, PER_PROCESS_TRANSLATED, PER_PROCESS_NO_OVERREAD, UNKNOWN(u32),
}
Expand description

Flags describing the target platform, environment, or architecture for a given function implementation.

These are encoded as a uint32_t, where high bits determine the namespace (Kind), and the lower bits encode the specific capability.

Variants§

§

ARM64_DEFAULT

§

ARM64_FLAGM

§

ARM64_FLAGM2

§

ARM64_FHM

§

ARM64_DOTPROD

§

ARM64_SHA3

§

ARM64_RDM

§

ARM64_LSE

§

ARM64_SHA256

§

ARM64_SHA512

§

ARM64_SHA1

§

ARM64_AES

§

ARM64_PMULL

§

ARM64_SPECRES

§

ARM64_SB

§

ARM64_FRINTTS

§

ARM64_LRCPC

§

ARM64_LRCPC2

§

ARM64_FCMA

§

ARM64_JSCVT

§

ARM64_PAUTH

§

ARM64_PAUTH2

§

ARM64_FPAC

§

ARM64_DPB

§

ARM64_DPB2

§

ARM64_BF16

§

ARM64_I8MM

§

ARM64_WFXT

§

ARM64_RPRES

§

ARM64_ECV

§

ARM64_AFP

§

ARM64_LSE2

§

ARM64_CSV2

§

ARM64_CVS3

§

ARM64_DIT

§

ARM64_FP16

§

ARM64_SSBS

§

ARM64_BTI

§

ARM64_SME

§

ARM64_SME2

§

ARM64_SMEF64F64

§

ARM64_SMEI16I64

§

ARM64_SMEF32F32

§

ARM64_SMEBI32I32

§

ARM64_SMEB16F32

§

ARM64_SMEF16F32

§

ARM64_SMEI8I32

§

ARM64_SMEI16I32

§

ARM64_ADVSIMD

§

ARM64_ADVSIMDHPFP

§

ARM64_CRC32

§

X86_64_DEFAULT

§

X86_64_SSE41

§

X86_64_FMA

§

X86_64_AVX

§

X86_64_AVX2

§

X86_64_AVX512F

§

X86_64_AVX512BW

§

X86_64_BMI1

§

X86_64_ROSETTA

§

X86_64_HASWELL

§

X86_64_IVYBRIDGE

§

X86_64_NEHALEM

§

SYSTEM_WIDE_DEFAULT

§

SYSTEM_WIDE_INTERNAL_INSTALL

§

SYSTEM_WIDE_CUSTOMER_INSTALL

§

SYSTEM_WIDE_LOCKDOWN

§

PER_PROCESS_DEFAULT

§

PER_PROCESS_TRANSLATED

§

PER_PROCESS_NO_OVERREAD

§

UNKNOWN(u32)

Trait Implementations§

§

impl Clone for Flag

§

fn clone(&self) -> Flag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Flag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl From<Flag> for u32

§

fn from(value: Flag) -> u32

Converts to this type from the input type.
§

impl From<u32> for Flag

§

fn from(value: u32) -> Self

Converts to this type from the input type.
§

impl Hash for Flag

§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq<Flag> for Flag

§

fn eq(&self, other: &Flag) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Flag

§

impl Eq for Flag

§

impl StructuralEq for Flag

§

impl StructuralPartialEq for Flag

Auto Trait Implementations§

§

impl RefUnwindSafe for Flag

§

impl Send for Flag

§

impl Sync for Flag

§

impl Unpin for Flag

§

impl UnwindSafe for Flag

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.