Skip to main content

CpuFeature

Enum CpuFeature 

Source
#[repr(u8)]
pub enum CpuFeature {
Show 108 variants Rv32C = 0, Rv32CF = 1, Rv32DZfa = 2, Rv32I = 3, Rv32Zbb = 4, Rv32Zbkb = 5, Rv32Zbs = 6, Rv32Zclsd = 7, Rv32Zicntr = 8, Rv32Zk = 9, Rv32Zkn = 10, Rv32Zknd = 11, Rv32Zkne = 12, Rv32Zknh = 13, Rv32Zks = 14, Rv64A = 15, Rv64C = 16, Rv64D = 17, Rv64F = 18, Rv64H = 19, Rv64I = 20, Rv64M = 21, Rv64Q = 22, Rv64QZfa = 23, Rv64Zacas = 24, Rv64Zba = 25, Rv64Zbb = 26, Rv64Zbkb = 27, Rv64Zbs = 28, Rv64Zcb = 29, Rv64Zfh = 30, Rv64Zk = 31, Rv64Zkn = 32, Rv64Zknd = 33, Rv64Zkne = 34, Rv64Zknh = 35, Rv64Zks = 36, RvA = 37, RvC = 38, RvCD = 39, RvCZicfiss = 40, RvCZihintntl = 41, RvD = 42, RvDZfa = 43, RvDZfhmin = 44, RvF = 45, RvFZfa = 46, RvH = 47, RvI = 48, RvM = 49, RvQ = 50, RvQZfa = 51, RvQZfhmin = 52, RvS = 53, RvSdext = 54, RvSmrnmi = 55, RvSsctr = 56, RvSvinval = 57, RvSvinvalH = 58, RvSystem = 59, RvV = 60, RvVAliases = 61, RvZabha = 62, RvZabhaZacas = 63, RvZacas = 64, RvZawrs = 65, RvZba = 66, RvZbb = 67, RvZbc = 68, RvZbkb = 69, RvZbkc = 70, RvZbkx = 71, RvZbs = 72, RvZcb = 73, RvZcmop = 74, RvZcmp = 75, RvZcmt = 76, RvZfbfmin = 77, RvZfh = 78, RvZfhZfa = 79, RvZfhmin = 80, RvZicbo = 81, RvZicfilp = 82, RvZicfiss = 83, RvZicntr = 84, RvZicond = 85, RvZicsr = 86, RvZifencei = 87, RvZihintntl = 88, RvZimop = 89, RvZk = 90, RvZkn = 91, RvZknh = 92, RvZks = 93, RvZksed = 94, RvZksh = 95, RvZvbb = 96, RvZvbc = 97, RvZvfbfmin = 98, RvZvfbfwma = 99, RvZvkg = 100, RvZvkn = 101, RvZvkned = 102, RvZvknha = 103, RvZvknhb = 104, RvZvks = 105, RvZvksed = 106, RvZvksh = 107,
}
Expand description

RISC-V extension identifiers from the pinned riscv-opcodes input files.

Variants§

§

Rv32C = 0

§

Rv32CF = 1

§

Rv32DZfa = 2

§

Rv32I = 3

§

Rv32Zbb = 4

§

Rv32Zbkb = 5

§

Rv32Zbs = 6

§

Rv32Zclsd = 7

§

Rv32Zicntr = 8

§

Rv32Zk = 9

§

Rv32Zkn = 10

§

Rv32Zknd = 11

§

Rv32Zkne = 12

§

Rv32Zknh = 13

§

Rv32Zks = 14

§

Rv64A = 15

§

Rv64C = 16

§

Rv64D = 17

§

Rv64F = 18

§

Rv64H = 19

§

Rv64I = 20

§

Rv64M = 21

§

Rv64Q = 22

§

Rv64QZfa = 23

§

Rv64Zacas = 24

§

Rv64Zba = 25

§

Rv64Zbb = 26

§

Rv64Zbkb = 27

§

Rv64Zbs = 28

§

Rv64Zcb = 29

§

Rv64Zfh = 30

§

Rv64Zk = 31

§

Rv64Zkn = 32

§

Rv64Zknd = 33

§

Rv64Zkne = 34

§

Rv64Zknh = 35

§

Rv64Zks = 36

§

RvA = 37

§

RvC = 38

§

RvCD = 39

§

RvCZicfiss = 40

§

RvCZihintntl = 41

§

RvD = 42

§

RvDZfa = 43

§

RvDZfhmin = 44

§

RvF = 45

§

RvFZfa = 46

§

RvH = 47

§

RvI = 48

§

RvM = 49

§

RvQ = 50

§

RvQZfa = 51

§

RvQZfhmin = 52

§

RvS = 53

§

RvSdext = 54

§

RvSmrnmi = 55

§

RvSsctr = 56

§

RvSvinval = 57

§

RvSvinvalH = 58

§

RvSystem = 59

§

RvV = 60

§

RvVAliases = 61

§

RvZabha = 62

§

RvZabhaZacas = 63

§

RvZacas = 64

§

RvZawrs = 65

§

RvZba = 66

§

RvZbb = 67

§

RvZbc = 68

§

RvZbkb = 69

§

RvZbkc = 70

§

RvZbkx = 71

§

RvZbs = 72

§

RvZcb = 73

§

RvZcmop = 74

§

RvZcmp = 75

§

RvZcmt = 76

§

RvZfbfmin = 77

§

RvZfh = 78

§

RvZfhZfa = 79

§

RvZfhmin = 80

§

RvZicbo = 81

§

RvZicfilp = 82

§

RvZicfiss = 83

§

RvZicntr = 84

§

RvZicond = 85

§

RvZicsr = 86

§

RvZifencei = 87

§

RvZihintntl = 88

§

RvZimop = 89

§

RvZk = 90

§

RvZkn = 91

§

RvZknh = 92

§

RvZks = 93

§

RvZksed = 94

§

RvZksh = 95

§

RvZvbb = 96

§

RvZvbc = 97

§

RvZvfbfmin = 98

§

RvZvfbfwma = 99

§

RvZvkg = 100

§

RvZvkn = 101

§

RvZvkned = 102

§

RvZvknha = 103

§

RvZvknhb = 104

§

RvZvks = 105

§

RvZvksed = 106

§

RvZvksh = 107

Implementations§

Source§

impl CpuFeature

Source

pub const fn name(self) -> &'static str

Trait Implementations§

Source§

impl Clone for CpuFeature

Source§

fn clone(&self) -> CpuFeature

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for CpuFeature

Source§

impl Debug for CpuFeature

Source§

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

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

impl Eq for CpuFeature

Source§

impl Ord for CpuFeature

Source§

fn cmp(&self, other: &CpuFeature) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for CpuFeature

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialOrd for CpuFeature

Source§

fn partial_cmp(&self, other: &CpuFeature) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for CpuFeature

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.