pub enum Opcode {
Show 40 variants
PushNull,
PushBool(bool),
PushString(Arc<str>),
PushNumber(Decimal),
Pop,
Flatten,
Join,
Fetch,
FetchRootEnv,
FetchEnv(Arc<str>),
FetchFast(Vec<FetchFastTarget>),
Negate,
Not,
Equal,
Jump(Jump, u32),
In,
Compare(Compare),
Add,
Subtract,
Multiply,
Divide,
Modulo,
Exponent,
Slice,
Array,
Object,
AssignedObjectBegin,
AssignedObjectStep,
AssignedObjectEnd {
with_return: bool,
},
Len,
IncrementIt,
IncrementCount,
GetCount,
GetLen,
Pointer,
Begin,
End,
CallFunction {
kind: FunctionKind,
arg_count: u32,
},
CallMethod {
kind: MethodKind,
arg_count: u32,
},
Interval {
left_bracket: Bracket,
right_bracket: Bracket,
},
}
Expand description
Machine code interpreted by VM
Variants§
PushNull
PushBool(bool)
PushString(Arc<str>)
PushNumber(Decimal)
Pop
Flatten
Join
Fetch
FetchRootEnv
FetchEnv(Arc<str>)
FetchFast(Vec<FetchFastTarget>)
Negate
Not
Equal
Jump(Jump, u32)
In
Compare(Compare)
Add
Subtract
Multiply
Divide
Modulo
Exponent
Slice
Array
Object
AssignedObjectBegin
AssignedObjectStep
AssignedObjectEnd
Len
IncrementIt
IncrementCount
GetCount
GetLen
Pointer
Begin
End
CallFunction
CallMethod
Interval
Trait Implementations§
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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