Skip to main content

ClrOpcode

Enum ClrOpcode 

Source
pub enum ClrOpcode {
Show 201 variants Nop, LdcI4, LdcI4S, LdcI4M1, LdcI40, LdcI41, LdcI42, LdcI43, LdcI44, LdcI45, LdcI46, LdcI47, LdcI48, LdcI8, LdcR4, LdcR8, Ldnull, Ldstr, Ldarg, LdargS, Ldarg0, Ldarg1, Ldarg2, Ldarg3, Ldloc, LdlocS, Ldloc0, Ldloc1, Ldloc2, Ldloc3, Starg, StargS, Stloc, StlocS, Stloc0, Stloc1, Stloc2, Stloc3, Ldarga, LdargaS, Ldloca, LdlocaS, Ldelem, LdelemI1, LdelemU1, LdelemI2, LdelemU2, LdelemI4, LdelemU4, LdelemI8, LdelemI, LdelemR4, LdelemR8, LdelemRef, Stelem, StelemI1, StelemI2, StelemI4, StelemI8, StelemI, StelemR4, StelemR8, StelemRef, Ldlen, Newarr, LdindI1, LdindU1, LdindI2, LdindU2, LdindI4, LdindU4, LdindI8, LdindI, LdindR4, LdindR8, LdindRef, StindI1, StindI2, StindI4, StindI8, StindI, StindR4, StindR8, StindRef, Ldfld, Ldflda, Stfld, Ldsfld, Ldsflda, Stsfld, Call, Callvirt, Calli, Ret, Newobj, Castclass, Isinst, Unbox, UnboxAny, Box, Br, BrS, Brtrue, BrtrueS, Brfalse, BrfalseS, Beq, BeqS, Bne, BneS, Blt, BltS, BltUn, BltUnS, Ble, BleS, BleUn, BleUnS, Bgt, BgtS, BgtUn, BgtUnS, Bge, BgeS, BgeUn, BgeUnS, Switch, Add, AddOvf, AddOvfUn, Sub, SubOvf, SubOvfUn, Mul, MulOvf, MulOvfUn, Div, DivUn, Rem, RemUn, And, Or, Xor, Not, Shl, Shr, ShrUn, Neg, Ceq, Cgt, CgtUn, Clt, CltUn, ConvI1, ConvI2, ConvI4, ConvI8, ConvR4, ConvR8, ConvU4, ConvU8, ConvOvfI1, ConvOvfI2, ConvOvfI4, ConvOvfI8, ConvOvfU1, ConvOvfU2, ConvOvfU4, ConvOvfU8, ConvOvfI1Un, ConvOvfI2Un, ConvOvfI4Un, ConvOvfI8Un, ConvOvfU1Un, ConvOvfU2Un, ConvOvfU4Un, ConvOvfU8Un, ConvRUn, ConvOvfIUn, ConvOvfUUn, Dup, Pop, Throw, Rethrow, Leave, LeaveS, Endfinally, Endfilter, Sizeof, Refanytype, Refanyval, Mkrefany, Arglist, Localloc, Jmp, Calli2, Tail, Volatile, Unaligned, Constrained, Readonly,
}
Expand description

CLR 操作码

Variants§

§

Nop

§

LdcI4

§

LdcI4S

§

LdcI4M1

§

LdcI40

§

LdcI41

§

LdcI42

§

LdcI43

§

LdcI44

§

LdcI45

§

LdcI46

§

LdcI47

§

LdcI48

§

LdcI8

§

LdcR4

§

LdcR8

§

Ldnull

§

Ldstr

§

Ldarg

§

LdargS

§

Ldarg0

§

Ldarg1

§

Ldarg2

§

Ldarg3

§

Ldloc

§

LdlocS

§

Ldloc0

§

Ldloc1

§

Ldloc2

§

Ldloc3

§

Starg

§

StargS

§

Stloc

§

StlocS

§

Stloc0

§

Stloc1

§

Stloc2

§

Stloc3

§

Ldarga

§

LdargaS

§

Ldloca

§

LdlocaS

§

Ldelem

§

LdelemI1

§

LdelemU1

§

LdelemI2

§

LdelemU2

§

LdelemI4

§

LdelemU4

§

LdelemI8

§

LdelemI

§

LdelemR4

§

LdelemR8

§

LdelemRef

§

Stelem

§

StelemI1

§

StelemI2

§

StelemI4

§

StelemI8

§

StelemI

§

StelemR4

§

StelemR8

§

StelemRef

§

Ldlen

§

Newarr

§

LdindI1

§

LdindU1

§

LdindI2

§

LdindU2

§

LdindI4

§

LdindU4

§

LdindI8

§

LdindI

§

LdindR4

§

LdindR8

§

LdindRef

§

StindI1

§

StindI2

§

StindI4

§

StindI8

§

StindI

§

StindR4

§

StindR8

§

StindRef

§

Ldfld

§

Ldflda

§

Stfld

§

Ldsfld

§

Ldsflda

§

Stsfld

§

Call

§

Callvirt

§

Calli

§

Ret

§

Newobj

§

Castclass

§

Isinst

§

Unbox

§

UnboxAny

§

Box

§

Br

§

BrS

§

Brtrue

§

BrtrueS

§

Brfalse

§

BrfalseS

§

Beq

§

BeqS

§

Bne

§

BneS

§

Blt

§

BltS

§

BltUn

§

BltUnS

§

Ble

§

BleS

§

BleUn

§

BleUnS

§

Bgt

§

BgtS

§

BgtUn

§

BgtUnS

§

Bge

§

BgeS

§

BgeUn

§

BgeUnS

§

Switch

§

Add

§

AddOvf

§

AddOvfUn

§

Sub

§

SubOvf

§

SubOvfUn

§

Mul

§

MulOvf

§

MulOvfUn

§

Div

§

DivUn

§

Rem

§

RemUn

§

And

§

Or

§

Xor

§

Not

§

Shl

§

Shr

§

ShrUn

§

Neg

§

Ceq

§

Cgt

§

CgtUn

§

Clt

§

CltUn

§

ConvI1

§

ConvI2

§

ConvI4

§

ConvI8

§

ConvR4

§

ConvR8

§

ConvU4

§

ConvU8

§

ConvOvfI1

§

ConvOvfI2

§

ConvOvfI4

§

ConvOvfI8

§

ConvOvfU1

§

ConvOvfU2

§

ConvOvfU4

§

ConvOvfU8

§

ConvOvfI1Un

§

ConvOvfI2Un

§

ConvOvfI4Un

§

ConvOvfI8Un

§

ConvOvfU1Un

§

ConvOvfU2Un

§

ConvOvfU4Un

§

ConvOvfU8Un

§

ConvRUn

§

ConvOvfIUn

§

ConvOvfUUn

§

Dup

§

Pop

§

Throw

§

Rethrow

§

Leave

§

LeaveS

§

Endfinally

§

Endfilter

§

Sizeof

§

Refanytype

§

Refanyval

§

Mkrefany

§

Arglist

§

Localloc

§

Jmp

§

Calli2

§

Tail

§

Volatile

§

Unaligned

§

Constrained

§

Readonly

Implementations§

Source§

impl ClrOpcode

Source

pub fn to_byte(&self) -> u8

将操作码转换为字节

Source

pub fn from_str(s: &str) -> Option<Self>

从字符串解析操作码

Trait Implementations§

Source§

impl Clone for ClrOpcode

Source§

fn clone(&self) -> ClrOpcode

Returns a duplicate 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 ClrOpcode

Source§

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

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

impl PartialEq for ClrOpcode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl Copy for ClrOpcode

Source§

impl StructuralPartialEq for ClrOpcode

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,