#[repr(u8)]pub enum OpCode {
Show 38 variants
Move = 0,
LoadK = 1,
LoadBool = 2,
LoadNil = 3,
GetUpval = 4,
GetGlobal = 5,
GetTable = 6,
SetGlobal = 7,
SetUpval = 8,
SetTable = 9,
NewTable = 10,
Self_ = 11,
Add = 12,
Sub = 13,
Mul = 14,
Div = 15,
Mod = 16,
Pow = 17,
Unm = 18,
Not = 19,
Len = 20,
Concat = 21,
Jmp = 22,
Eq = 23,
Lt = 24,
Le = 25,
Test = 26,
TestSet = 27,
Call = 28,
TailCall = 29,
Return = 30,
ForLoop = 31,
ForPrep = 32,
TForLoop = 33,
SetList = 34,
Close = 35,
Closure = 36,
VarArg = 37,
}Expand description
Lua 5.1 opcodes, matching the enum order in lopcodes.h
Variants§
Move = 0
LoadK = 1
LoadBool = 2
LoadNil = 3
GetUpval = 4
GetGlobal = 5
GetTable = 6
SetGlobal = 7
SetUpval = 8
SetTable = 9
NewTable = 10
Self_ = 11
Add = 12
Sub = 13
Mul = 14
Div = 15
Mod = 16
Pow = 17
Unm = 18
Not = 19
Len = 20
Concat = 21
Jmp = 22
Eq = 23
Lt = 24
Le = 25
Test = 26
TestSet = 27
Call = 28
TailCall = 29
Return = 30
ForLoop = 31
ForPrep = 32
TForLoop = 33
SetList = 34
Close = 35
Closure = 36
VarArg = 37
Implementations§
Trait Implementations§
impl Copy for OpCode
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<T> Indentable for Twhere
T: Display,
impl<T> Indentable for Twhere
T: Display,
Source§fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more