#[repr(u32)]
pub enum Feature {
Show 58 variants none = 0, ia32 = 1, fpu = 2, cmov = 3, mmx = 4, fxsave = 5, sse = 6, sse2 = 7, sse3 = 8, ssse3 = 9, sse4_1 = 10, sse4_2 = 11, movbe = 12, popcnt = 13, pclmulqdq = 14, aes = 15, f16c = 16, avx = 17, rdrand = 18, fma = 19, bmi = 20, lzcnt = 21, hle = 22, rtm = 23, avx2 = 24, avx512dq = 25, ptwrite = 26, kncni = 27, avx512f = 28, adx = 29, rdseed = 30, avx512ifma = 31, full_inorder = 32, avx512er = 33, avx512pf = 34, avx512cd = 35, sha = 36, mpx = 37, avx512bw = 38, avx512vl = 39, avx512vbmi = 40, avx512_4fmaps = 41, avx512_4vnniw = 42, avx512_vpopcntdq = 43, avx512_bitalg = 44, avx512vbmi2 = 45, gfni = 46, vaes = 47, vpclmulqdq = 48, avx512vnni = 49, clwb = 50, rdpid = 51, ibt = 52, shstk = 53, sgx = 54, wbnoinvd = 55, pconfig = 56, end = 57,
}

Variants§

§

none = 0

§

ia32 = 1

§

fpu = 2

§

cmov = 3

§

mmx = 4

§

fxsave = 5

§

sse = 6

§

sse2 = 7

§

sse3 = 8

§

ssse3 = 9

§

sse4_1 = 10

§

sse4_2 = 11

§

movbe = 12

§

popcnt = 13

§

pclmulqdq = 14

§

aes = 15

§

f16c = 16

§

avx = 17

§

rdrand = 18

§

fma = 19

§

bmi = 20

§

lzcnt = 21

§

hle = 22

§

rtm = 23

§

avx2 = 24

§

avx512dq = 25

§

ptwrite = 26

§

kncni = 27

§

avx512f = 28

§

adx = 29

§

rdseed = 30

§

avx512ifma = 31

§

full_inorder = 32

§

avx512er = 33

§

avx512pf = 34

§

avx512cd = 35

§

sha = 36

§

mpx = 37

§

avx512bw = 38

§

avx512vl = 39

§

avx512vbmi = 40

§

avx512_4fmaps = 41

§

avx512_4vnniw = 42

§

avx512_vpopcntdq = 43

§

avx512_bitalg = 44

§

avx512vbmi2 = 45

§

gfni = 46

§

vaes = 47

§

vpclmulqdq = 48

§

avx512vnni = 49

§

clwb = 50

§

rdpid = 51

§

ibt = 52

§

shstk = 53

§

sgx = 54

§

wbnoinvd = 55

§

pconfig = 56

§

end = 57

Implementations§

source§

impl Feature

source

pub fn into_bit(self) -> u64

Trait Implementations§

source§

impl Clone for Feature

source§

fn clone(&self) -> Feature

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
source§

impl Debug for Feature

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for Feature

source§

fn default() -> Feature

Returns the “default value” for a type. Read more
source§

impl From<Feature> for u32

source§

fn from(n: Feature) -> u32

Converts to this type from the input type.
source§

impl PartialEq for Feature

source§

fn eq(&self, other: &Feature) -> 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.
source§

impl TryFrom<u32> for Feature

§

type Error = TryFromIntError

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

fn try_from(v: u32) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl ContiguousMemory for Feature

source§

impl Copy for Feature

source§

impl Eq for Feature

source§

impl StructuralEq for Feature

source§

impl StructuralPartialEq for Feature

Auto Trait Implementations§

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> EnclaveRange for Twhere T: ContiguousMemory,

source§

default fn is_enclave_range(&self) -> bool

source§

default fn is_host_range(&self) -> bool

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.