Enum iced_x86::Register

source ·
#[non_exhaustive]
pub enum Register {
Show 256 variants None, AL, CL, DL, BL, AH, CH, DH, BH, SPL, BPL, SIL, DIL, R8L, R9L, R10L, R11L, R12L, R13L, R14L, R15L, AX, CX, DX, BX, SP, BP, SI, DI, R8W, R9W, R10W, R11W, R12W, R13W, R14W, R15W, EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI, R8D, R9D, R10D, R11D, R12D, R13D, R14D, R15D, RAX, RCX, RDX, RBX, RSP, RBP, RSI, RDI, R8, R9, R10, R11, R12, R13, R14, R15, EIP, RIP, ES, CS, SS, DS, FS, GS, XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7, XMM8, XMM9, XMM10, XMM11, XMM12, XMM13, XMM14, XMM15, XMM16, XMM17, XMM18, XMM19, XMM20, XMM21, XMM22, XMM23, XMM24, XMM25, XMM26, XMM27, XMM28, XMM29, XMM30, XMM31, YMM0, YMM1, YMM2, YMM3, YMM4, YMM5, YMM6, YMM7, YMM8, YMM9, YMM10, YMM11, YMM12, YMM13, YMM14, YMM15, YMM16, YMM17, YMM18, YMM19, YMM20, YMM21, YMM22, YMM23, YMM24, YMM25, YMM26, YMM27, YMM28, YMM29, YMM30, YMM31, ZMM0, ZMM1, ZMM2, ZMM3, ZMM4, ZMM5, ZMM6, ZMM7, ZMM8, ZMM9, ZMM10, ZMM11, ZMM12, ZMM13, ZMM14, ZMM15, ZMM16, ZMM17, ZMM18, ZMM19, ZMM20, ZMM21, ZMM22, ZMM23, ZMM24, ZMM25, ZMM26, ZMM27, ZMM28, ZMM29, ZMM30, ZMM31, K0, K1, K2, K3, K4, K5, K6, K7, BND0, BND1, BND2, BND3, CR0, CR1, CR2, CR3, CR4, CR5, CR6, CR7, CR8, CR9, CR10, CR11, CR12, CR13, CR14, CR15, DR0, DR1, DR2, DR3, DR4, DR5, DR6, DR7, DR8, DR9, DR10, DR11, DR12, DR13, DR14, DR15, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7, MM0, MM1, MM2, MM3, MM4, MM5, MM6, MM7, TR0, TR1, TR2, TR3, TR4, TR5, TR6, TR7, TMM0, TMM1, TMM2, TMM3, TMM4, TMM5, TMM6, TMM7, DontUse0, DontUseFA, DontUseFB, DontUseFC, DontUseFD, DontUseFE, DontUseFF,
}
Expand description

A register

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

None

§

AL

§

CL

§

DL

§

BL

§

AH

§

CH

§

DH

§

BH

§

SPL

§

BPL

§

SIL

§

DIL

§

R8L

§

R9L

§

R10L

§

R11L

§

R12L

§

R13L

§

R14L

§

R15L

§

AX

§

CX

§

DX

§

BX

§

SP

§

BP

§

SI

§

DI

§

R8W

§

R9W

§

R10W

§

R11W

§

R12W

§

R13W

§

R14W

§

R15W

§

EAX

§

ECX

§

EDX

§

EBX

§

ESP

§

EBP

§

ESI

§

EDI

§

R8D

§

R9D

§

R10D

§

R11D

§

R12D

§

R13D

§

R14D

§

R15D

§

RAX

§

RCX

§

RDX

§

RBX

§

RSP

§

RBP

§

RSI

§

RDI

§

R8

§

R9

§

R10

§

R11

§

R12

§

R13

§

R14

§

R15

§

EIP

§

RIP

§

ES

§

CS

§

SS

§

DS

§

FS

§

GS

§

XMM0

§

XMM1

§

XMM2

§

XMM3

§

XMM4

§

XMM5

§

XMM6

§

XMM7

§

XMM8

§

XMM9

§

XMM10

§

XMM11

§

XMM12

§

XMM13

§

XMM14

§

XMM15

§

XMM16

§

XMM17

§

XMM18

§

XMM19

§

XMM20

§

XMM21

§

XMM22

§

XMM23

§

XMM24

§

XMM25

§

XMM26

§

XMM27

§

XMM28

§

XMM29

§

XMM30

§

XMM31

§

YMM0

§

YMM1

§

YMM2

§

YMM3

§

YMM4

§

YMM5

§

YMM6

§

YMM7

§

YMM8

§

YMM9

§

YMM10

§

YMM11

§

YMM12

§

YMM13

§

YMM14

§

YMM15

§

YMM16

§

YMM17

§

YMM18

§

YMM19

§

YMM20

§

YMM21

§

YMM22

§

YMM23

§

YMM24

§

YMM25

§

YMM26

§

YMM27

§

YMM28

§

YMM29

§

YMM30

§

YMM31

§

ZMM0

§

ZMM1

§

ZMM2

§

ZMM3

§

ZMM4

§

ZMM5

§

ZMM6

§

ZMM7

§

ZMM8

§

ZMM9

§

ZMM10

§

ZMM11

§

ZMM12

§

ZMM13

§

ZMM14

§

ZMM15

§

ZMM16

§

ZMM17

§

ZMM18

§

ZMM19

§

ZMM20

§

ZMM21

§

ZMM22

§

ZMM23

§

ZMM24

§

ZMM25

§

ZMM26

§

ZMM27

§

ZMM28

§

ZMM29

§

ZMM30

§

ZMM31

§

K0

§

K1

§

K2

§

K3

§

K4

§

K5

§

K6

§

K7

§

BND0

§

BND1

§

BND2

§

BND3

§

CR0

§

CR1

§

CR2

§

CR3

§

CR4

§

CR5

§

CR6

§

CR7

§

CR8

§

CR9

§

CR10

§

CR11

§

CR12

§

CR13

§

CR14

§

CR15

§

DR0

§

DR1

§

DR2

§

DR3

§

DR4

§

DR5

§

DR6

§

DR7

§

DR8

§

DR9

§

DR10

§

DR11

§

DR12

§

DR13

§

DR14

§

DR15

§

ST0

§

ST1

§

ST2

§

ST3

§

ST4

§

ST5

§

ST6

§

ST7

§

MM0

§

MM1

§

MM2

§

MM3

§

MM4

§

MM5

§

MM6

§

MM7

§

TR0

§

TR1

§

TR2

§

TR3

§

TR4

§

TR5

§

TR6

§

TR7

§

TMM0

§

TMM1

§

TMM2

§

TMM3

§

TMM4

§

TMM5

§

TMM6

§

TMM7

§

DontUse0

👎Deprecated since 1.12.0: Not part of the public API

Don’t use it!

§

DontUseFA

👎Deprecated since 1.12.0: Not part of the public API

Don’t use it!

§

DontUseFB

👎Deprecated since 1.12.0: Not part of the public API

Don’t use it!

§

DontUseFC

👎Deprecated since 1.12.0: Not part of the public API

Don’t use it!

§

DontUseFD

👎Deprecated since 1.12.0: Not part of the public API

Don’t use it!

§

DontUseFE

👎Deprecated since 1.12.0: Not part of the public API

Don’t use it!

§

DontUseFF

👎Deprecated since 1.12.0: Not part of the public API

Don’t use it!

Implementations§

source§

impl Register

source

pub fn values( ) -> impl Iterator<Item = Register> + DoubleEndedIterator + ExactSizeIterator + FusedIterator

Iterates over all Register enum values

Trait Implementations§

source§

impl Add<Register> for i32

§

type Output = Register

The resulting type after applying the + operator.
source§

fn add(self, rhs: Register) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Register> for u32

§

type Output = Register

The resulting type after applying the + operator.
source§

fn add(self, rhs: Register) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i32> for Register

§

type Output = Register

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u32> for Register

§

type Output = Register

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Self::Output

Performs the + operation. Read more
source§

impl AddAssign<i32> for Register

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl AddAssign<u32> for Register

source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
source§

impl Clone for Register

source§

fn clone(&self) -> Register

Returns a copy of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Register

source§

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

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

impl Default for Register

source§

fn default() -> Self

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

impl Hash for Register

source§

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

Feeds this value into the given [Hasher]. Read more
1.3.0§

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

impl Ord for Register

source§

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

This method returns an [Ordering] between self and other. Read more
1.21.0§

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

Compares and returns the maximum of two values. Read more
1.21.0§

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

Compares and returns the minimum of two values. Read more
1.50.0§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

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

impl PartialEq<Register> for Register

source§

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

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

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 PartialOrd<Register> for Register

source§

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Sub<i32> for Register

§

type Output = Register

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u32> for Register

§

type Output = Register

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<i32> for Register

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl SubAssign<u32> for Register

source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
source§

impl TryFrom<usize> for Register

§

type Error = IcedError

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

fn try_from(value: usize) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for Register

source§

impl Eq for Register

source§

impl StructuralEq for Register

source§

impl StructuralPartialEq for Register

Auto Trait Implementations§

§

impl RefUnwindSafe for Register

§

impl Send for Register

§

impl Sync for Register

§

impl Unpin for Register

§

impl UnwindSafe for Register

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

const: unstable§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

const: unstable§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

const: unstable§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

const: unstable§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable§

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

Performs the conversion.
§

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.
const: unstable§

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

Performs the conversion.