pub enum ClrInstruction {
Show 13 variants
Simple {
opcode: ClrOpcode,
},
WithImmediate {
opcode: ClrOpcode,
value: i32,
},
WithImmediate64 {
opcode: ClrOpcode,
value: i64,
},
WithFloat32 {
opcode: ClrOpcode,
value: f32,
},
WithFloat64 {
opcode: ClrOpcode,
value: f64,
},
WithLocalVar {
opcode: ClrOpcode,
index: u16,
},
WithParameter {
opcode: ClrOpcode,
index: u16,
},
WithField {
opcode: ClrOpcode,
field_ref: String,
},
WithMethod {
opcode: ClrOpcode,
method_ref: String,
},
WithType {
opcode: ClrOpcode,
type_ref: String,
},
WithString {
opcode: ClrOpcode,
value: String,
},
WithLabel {
opcode: ClrOpcode,
label: String,
},
WithSwitch {
opcode: ClrOpcode,
labels: Vec<String>,
},
}Expand description
CLR 指令
Variants§
Simple
简单指令(无操作数)
WithImmediate
带立即数的指令
WithImmediate64
带 64 位立即数的指令
WithFloat32
带 32 位浮点数的指令
WithFloat64
带 64 位浮点数的指令
WithLocalVar
带局部变量索引的指令
WithParameter
带参数索引的指令
WithField
带字段引用的指令
WithMethod
带方法引用的指令
WithType
带类型引用的指令
WithString
带字符串的指令
WithLabel
带分支标签的指令
WithSwitch
带 switch 表的指令
Trait Implementations§
Source§impl Clone for ClrInstruction
impl Clone for ClrInstruction
Source§fn clone(&self) -> ClrInstruction
fn clone(&self) -> ClrInstruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClrInstruction
impl Debug for ClrInstruction
Source§impl PartialEq for ClrInstruction
impl PartialEq for ClrInstruction
impl StructuralPartialEq for ClrInstruction
Auto Trait Implementations§
impl Freeze for ClrInstruction
impl RefUnwindSafe for ClrInstruction
impl Send for ClrInstruction
impl Sync for ClrInstruction
impl Unpin for ClrInstruction
impl UnwindSafe for ClrInstruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more