pub enum Instruction {
Show 41 variants
LoadConst(PythonValue),
LoadLocal(usize),
LoadGlobal(String),
LoadAttr(String),
LoadIndex(usize),
StoreLocal(usize),
StoreGlobal(String),
StoreAttr(String),
StoreIndex(usize),
Add,
Sub,
Mul,
Div,
Mod,
Exp,
FloorDiv,
Eq,
Neq,
Lt,
Lte,
Gt,
Gte,
And,
Or,
Not,
Jump(i32),
JumpIfFalse(i32),
JumpIfTrue(i32),
JumpIfNone(i32),
JumpIfNotNone(i32),
Call(usize),
Return,
NewList(usize),
NewDict(usize),
NoneOp,
TrueOp,
FalseOp,
Raise,
TryBegin,
TryEnd,
Except,
}Expand description
IR instruction
Variants§
LoadConst(PythonValue)
LoadLocal(usize)
LoadGlobal(String)
LoadAttr(String)
LoadIndex(usize)
StoreLocal(usize)
StoreGlobal(String)
StoreAttr(String)
StoreIndex(usize)
Add
Sub
Mul
Div
Mod
Exp
FloorDiv
Eq
Neq
Lt
Lte
Gt
Gte
And
Or
Not
Jump(i32)
JumpIfFalse(i32)
JumpIfTrue(i32)
JumpIfNone(i32)
JumpIfNotNone(i32)
Call(usize)
Return
NewList(usize)
NewDict(usize)
NoneOp
TrueOp
FalseOp
Raise
TryBegin
TryEnd
Except
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 Instruction
impl Debug for Instruction
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnsafeUnpin for Instruction
impl UnwindSafe for Instruction
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