Skip to main content

LuauOpcode

Enum LuauOpcode 

Source
#[repr(u8)]
pub enum LuauOpcode {
Show 90 variants LOP_NOP = 0, LOP_BREAK = 1, LOP_LOADNIL = 2, LOP_LOADB = 3, LOP_LOADN = 4, LOP_LOADK = 5, LOP_MOVE = 6, LOP_GETGLOBAL = 7, LOP_SETGLOBAL = 8, LOP_GETUPVAL = 9, LOP_SETUPVAL = 10, LOP_CLOSEUPVALS = 11, LOP_GETIMPORT = 12, LOP_GETTABLE = 13, LOP_SETTABLE = 14, LOP_GETTABLEKS = 15, LOP_SETTABLEKS = 16, LOP_GETTABLEN = 17, LOP_SETTABLEN = 18, LOP_NEWCLOSURE = 19, LOP_NAMECALL = 20, LOP_CALL = 21, LOP_RETURN = 22, LOP_JUMP = 23, LOP_JUMPBACK = 24, LOP_JUMPIF = 25, LOP_JUMPIFNOT = 26, LOP_JUMPIFEQ = 27, LOP_JUMPIFLE = 28, LOP_JUMPIFLT = 29, LOP_JUMPIFNOTEQ = 30, LOP_JUMPIFNOTLE = 31, LOP_JUMPIFNOTLT = 32, LOP_ADD = 33, LOP_SUB = 34, LOP_MUL = 35, LOP_DIV = 36, LOP_MOD = 37, LOP_POW = 38, LOP_ADDK = 39, LOP_SUBK = 40, LOP_MULK = 41, LOP_DIVK = 42, LOP_MODK = 43, LOP_POWK = 44, LOP_AND = 45, LOP_OR = 46, LOP_ANDK = 47, LOP_ORK = 48, LOP_CONCAT = 49, LOP_NOT = 50, LOP_MINUS = 51, LOP_LENGTH = 52, LOP_NEWTABLE = 53, LOP_DUPTABLE = 54, LOP_SETLIST = 55, LOP_FORNPREP = 56, LOP_FORNLOOP = 57, LOP_FORGLOOP = 58, LOP_FORGPREP_INEXT = 59, LOP_FASTCALL3 = 60, LOP_FORGPREP_NEXT = 61, LOP_NATIVECALL = 62, LOP_GETVARARGS = 63, LOP_DUPCLOSURE = 64, LOP_PREPVARARGS = 65, LOP_LOADKX = 66, LOP_JUMPX = 67, LOP_FASTCALL = 68, LOP_COVERAGE = 69, LOP_CAPTURE = 70, LOP_SUBRK = 71, LOP_DIVRK = 72, LOP_FASTCALL1 = 73, LOP_FASTCALL2 = 74, LOP_FASTCALL2K = 75, LOP_FORGPREP = 76, LOP_JUMPXEQKNIL = 77, LOP_JUMPXEQKB = 78, LOP_JUMPXEQKN = 79, LOP_JUMPXEQKS = 80, LOP_IDIV = 81, LOP_IDIVK = 82, LOP_GETUDATAKS = 83, LOP_SETUDATAKS = 84, LOP_NAMECALLUDATA = 85, LOP_NEWCLASSMEMBER = 86, LOP_CALLFB = 87, LOP_CMPPROTO = 88, LOP__COUNT = 89,
}

Variants§

§

LOP_NOP = 0

§

LOP_BREAK = 1

§

LOP_LOADNIL = 2

§

LOP_LOADB = 3

§

LOP_LOADN = 4

§

LOP_LOADK = 5

§

LOP_MOVE = 6

§

LOP_GETGLOBAL = 7

§

LOP_SETGLOBAL = 8

§

LOP_GETUPVAL = 9

§

LOP_SETUPVAL = 10

§

LOP_CLOSEUPVALS = 11

§

LOP_GETIMPORT = 12

§

LOP_GETTABLE = 13

§

LOP_SETTABLE = 14

§

LOP_GETTABLEKS = 15

§

LOP_SETTABLEKS = 16

§

LOP_GETTABLEN = 17

§

LOP_SETTABLEN = 18

§

LOP_NEWCLOSURE = 19

§

LOP_NAMECALL = 20

§

LOP_CALL = 21

§

LOP_RETURN = 22

§

LOP_JUMP = 23

§

LOP_JUMPBACK = 24

§

LOP_JUMPIF = 25

§

LOP_JUMPIFNOT = 26

§

LOP_JUMPIFEQ = 27

§

LOP_JUMPIFLE = 28

§

LOP_JUMPIFLT = 29

§

LOP_JUMPIFNOTEQ = 30

§

LOP_JUMPIFNOTLE = 31

§

LOP_JUMPIFNOTLT = 32

§

LOP_ADD = 33

§

LOP_SUB = 34

§

LOP_MUL = 35

§

LOP_DIV = 36

§

LOP_MOD = 37

§

LOP_POW = 38

§

LOP_ADDK = 39

§

LOP_SUBK = 40

§

LOP_MULK = 41

§

LOP_DIVK = 42

§

LOP_MODK = 43

§

LOP_POWK = 44

§

LOP_AND = 45

§

LOP_OR = 46

§

LOP_ANDK = 47

§

LOP_ORK = 48

§

LOP_CONCAT = 49

§

LOP_NOT = 50

§

LOP_MINUS = 51

§

LOP_LENGTH = 52

§

LOP_NEWTABLE = 53

§

LOP_DUPTABLE = 54

§

LOP_SETLIST = 55

§

LOP_FORNPREP = 56

§

LOP_FORNLOOP = 57

§

LOP_FORGLOOP = 58

§

LOP_FORGPREP_INEXT = 59

§

LOP_FASTCALL3 = 60

§

LOP_FORGPREP_NEXT = 61

§

LOP_NATIVECALL = 62

§

LOP_GETVARARGS = 63

§

LOP_DUPCLOSURE = 64

§

LOP_PREPVARARGS = 65

§

LOP_LOADKX = 66

§

LOP_JUMPX = 67

§

LOP_FASTCALL = 68

§

LOP_COVERAGE = 69

§

LOP_CAPTURE = 70

§

LOP_SUBRK = 71

§

LOP_DIVRK = 72

§

LOP_FASTCALL1 = 73

§

LOP_FASTCALL2 = 74

§

LOP_FASTCALL2K = 75

§

LOP_FORGPREP = 76

§

LOP_JUMPXEQKNIL = 77

§

LOP_JUMPXEQKB = 78

§

LOP_JUMPXEQKN = 79

§

LOP_JUMPXEQKS = 80

§

LOP_IDIV = 81

§

LOP_IDIVK = 82

§

LOP_GETUDATAKS = 83

§

LOP_SETUDATAKS = 84

§

LOP_NAMECALLUDATA = 85

§

LOP_NEWCLASSMEMBER = 86

§

LOP_CALLFB = 87

§

LOP_CMPPROTO = 88

§

LOP__COUNT = 89

Implementations§

Source§

impl LuauOpcode

Source

pub const LOP_NOP: LuauOpcode = LuauOpcode::LOP_NOP

Source

pub const LOP_BREAK: LuauOpcode = LuauOpcode::LOP_BREAK

Source

pub const LOP_LOADNIL: LuauOpcode = LuauOpcode::LOP_LOADNIL

Source

pub const LOP_LOADB: LuauOpcode = LuauOpcode::LOP_LOADB

Source

pub const LOP_LOADN: LuauOpcode = LuauOpcode::LOP_LOADN

Source

pub const LOP_LOADK: LuauOpcode = LuauOpcode::LOP_LOADK

Source

pub const LOP_MOVE: LuauOpcode = LuauOpcode::LOP_MOVE

Source

pub const LOP_GETGLOBAL: LuauOpcode = LuauOpcode::LOP_GETGLOBAL

Source

pub const LOP_SETGLOBAL: LuauOpcode = LuauOpcode::LOP_SETGLOBAL

Source

pub const LOP_GETUPVAL: LuauOpcode = LuauOpcode::LOP_GETUPVAL

Source

pub const LOP_SETUPVAL: LuauOpcode = LuauOpcode::LOP_SETUPVAL

Source

pub const LOP_CLOSEUPVALS: LuauOpcode = LuauOpcode::LOP_CLOSEUPVALS

Source

pub const LOP_GETIMPORT: LuauOpcode = LuauOpcode::LOP_GETIMPORT

Source

pub const LOP_GETTABLE: LuauOpcode = LuauOpcode::LOP_GETTABLE

Source

pub const LOP_SETTABLE: LuauOpcode = LuauOpcode::LOP_SETTABLE

Source

pub const LOP_GETTABLEKS: LuauOpcode = LuauOpcode::LOP_GETTABLEKS

Source

pub const LOP_SETTABLEKS: LuauOpcode = LuauOpcode::LOP_SETTABLEKS

Source

pub const LOP_GETTABLEN: LuauOpcode = LuauOpcode::LOP_GETTABLEN

Source

pub const LOP_SETTABLEN: LuauOpcode = LuauOpcode::LOP_SETTABLEN

Source

pub const LOP_NEWCLOSURE: LuauOpcode = LuauOpcode::LOP_NEWCLOSURE

Source

pub const LOP_NAMECALL: LuauOpcode = LuauOpcode::LOP_NAMECALL

Source

pub const LOP_CALL: LuauOpcode = LuauOpcode::LOP_CALL

Source

pub const LOP_RETURN: LuauOpcode = LuauOpcode::LOP_RETURN

Source

pub const LOP_JUMP: LuauOpcode = LuauOpcode::LOP_JUMP

Source

pub const LOP_JUMPBACK: LuauOpcode = LuauOpcode::LOP_JUMPBACK

Source

pub const LOP_JUMPIF: LuauOpcode = LuauOpcode::LOP_JUMPIF

Source

pub const LOP_JUMPIFNOT: LuauOpcode = LuauOpcode::LOP_JUMPIFNOT

Source

pub const LOP_JUMPIFEQ: LuauOpcode = LuauOpcode::LOP_JUMPIFEQ

Source

pub const LOP_JUMPIFLE: LuauOpcode = LuauOpcode::LOP_JUMPIFLE

Source

pub const LOP_JUMPIFLT: LuauOpcode = LuauOpcode::LOP_JUMPIFLT

Source

pub const LOP_JUMPIFNOTEQ: LuauOpcode = LuauOpcode::LOP_JUMPIFNOTEQ

Source

pub const LOP_JUMPIFNOTLE: LuauOpcode = LuauOpcode::LOP_JUMPIFNOTLE

Source

pub const LOP_JUMPIFNOTLT: LuauOpcode = LuauOpcode::LOP_JUMPIFNOTLT

Source

pub const LOP_ADD: LuauOpcode = LuauOpcode::LOP_ADD

Source

pub const LOP_SUB: LuauOpcode = LuauOpcode::LOP_SUB

Source

pub const LOP_MUL: LuauOpcode = LuauOpcode::LOP_MUL

Source

pub const LOP_DIV: LuauOpcode = LuauOpcode::LOP_DIV

Source

pub const LOP_MOD: LuauOpcode = LuauOpcode::LOP_MOD

Source

pub const LOP_POW: LuauOpcode = LuauOpcode::LOP_POW

Source

pub const LOP_ADDK: LuauOpcode = LuauOpcode::LOP_ADDK

Source

pub const LOP_SUBK: LuauOpcode = LuauOpcode::LOP_SUBK

Source

pub const LOP_MULK: LuauOpcode = LuauOpcode::LOP_MULK

Source

pub const LOP_DIVK: LuauOpcode = LuauOpcode::LOP_DIVK

Source

pub const LOP_MODK: LuauOpcode = LuauOpcode::LOP_MODK

Source

pub const LOP_POWK: LuauOpcode = LuauOpcode::LOP_POWK

Source

pub const LOP_AND: LuauOpcode = LuauOpcode::LOP_AND

Source

pub const LOP_OR: LuauOpcode = LuauOpcode::LOP_OR

Source

pub const LOP_ANDK: LuauOpcode = LuauOpcode::LOP_ANDK

Source

pub const LOP_ORK: LuauOpcode = LuauOpcode::LOP_ORK

Source

pub const LOP_CONCAT: LuauOpcode = LuauOpcode::LOP_CONCAT

Source

pub const LOP_NOT: LuauOpcode = LuauOpcode::LOP_NOT

Source

pub const LOP_MINUS: LuauOpcode = LuauOpcode::LOP_MINUS

Source

pub const LOP_LENGTH: LuauOpcode = LuauOpcode::LOP_LENGTH

Source

pub const LOP_NEWTABLE: LuauOpcode = LuauOpcode::LOP_NEWTABLE

Source

pub const LOP_DUPTABLE: LuauOpcode = LuauOpcode::LOP_DUPTABLE

Source

pub const LOP_SETLIST: LuauOpcode = LuauOpcode::LOP_SETLIST

Source

pub const LOP_FORNPREP: LuauOpcode = LuauOpcode::LOP_FORNPREP

Source

pub const LOP_FORNLOOP: LuauOpcode = LuauOpcode::LOP_FORNLOOP

Source

pub const LOP_FORGLOOP: LuauOpcode = LuauOpcode::LOP_FORGLOOP

Source

pub const LOP_FORGPREP_INEXT: LuauOpcode = LuauOpcode::LOP_FORGPREP_INEXT

Source

pub const LOP_FASTCALL3: LuauOpcode = LuauOpcode::LOP_FASTCALL3

Source

pub const LOP_FORGPREP_NEXT: LuauOpcode = LuauOpcode::LOP_FORGPREP_NEXT

Source

pub const LOP_NATIVECALL: LuauOpcode = LuauOpcode::LOP_NATIVECALL

Source

pub const LOP_GETVARARGS: LuauOpcode = LuauOpcode::LOP_GETVARARGS

Source

pub const LOP_DUPCLOSURE: LuauOpcode = LuauOpcode::LOP_DUPCLOSURE

Source

pub const LOP_PREPVARARGS: LuauOpcode = LuauOpcode::LOP_PREPVARARGS

Source

pub const LOP_LOADKX: LuauOpcode = LuauOpcode::LOP_LOADKX

Source

pub const LOP_JUMPX: LuauOpcode = LuauOpcode::LOP_JUMPX

Source

pub const LOP_FASTCALL: LuauOpcode = LuauOpcode::LOP_FASTCALL

Source

pub const LOP_COVERAGE: LuauOpcode = LuauOpcode::LOP_COVERAGE

Source

pub const LOP_CAPTURE: LuauOpcode = LuauOpcode::LOP_CAPTURE

Source

pub const LOP_SUBRK: LuauOpcode = LuauOpcode::LOP_SUBRK

Source

pub const LOP_DIVRK: LuauOpcode = LuauOpcode::LOP_DIVRK

Source

pub const LOP_FASTCALL1: LuauOpcode = LuauOpcode::LOP_FASTCALL1

Source

pub const LOP_FASTCALL2: LuauOpcode = LuauOpcode::LOP_FASTCALL2

Source

pub const LOP_FASTCALL2K: LuauOpcode = LuauOpcode::LOP_FASTCALL2K

Source

pub const LOP_FORGPREP: LuauOpcode = LuauOpcode::LOP_FORGPREP

Source

pub const LOP_JUMPXEQKNIL: LuauOpcode = LuauOpcode::LOP_JUMPXEQKNIL

Source

pub const LOP_JUMPXEQKB: LuauOpcode = LuauOpcode::LOP_JUMPXEQKB

Source

pub const LOP_JUMPXEQKN: LuauOpcode = LuauOpcode::LOP_JUMPXEQKN

Source

pub const LOP_JUMPXEQKS: LuauOpcode = LuauOpcode::LOP_JUMPXEQKS

Source

pub const LOP_IDIV: LuauOpcode = LuauOpcode::LOP_IDIV

Source

pub const LOP_IDIVK: LuauOpcode = LuauOpcode::LOP_IDIVK

Source

pub const LOP_GETUDATAKS: LuauOpcode = LuauOpcode::LOP_GETUDATAKS

Source

pub const LOP_SETUDATAKS: LuauOpcode = LuauOpcode::LOP_SETUDATAKS

Source

pub const LOP_NAMECALLUDATA: LuauOpcode = LuauOpcode::LOP_NAMECALLUDATA

Source

pub const LOP_NEWCLASSMEMBER: LuauOpcode = LuauOpcode::LOP_NEWCLASSMEMBER

Source

pub const LOP_CALLFB: LuauOpcode = LuauOpcode::LOP_CALLFB

Source

pub const LOP_CMPPROTO: LuauOpcode = LuauOpcode::LOP_CMPPROTO

Source

pub const LOP__COUNT: LuauOpcode = LuauOpcode::LOP__COUNT

Trait Implementations§

Source§

impl Clone for LuauOpcode

Source§

fn clone(&self) -> LuauOpcode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for LuauOpcode

Source§

impl Debug for LuauOpcode

Source§

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

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

impl Eq for LuauOpcode

Source§

impl From<u8> for LuauOpcode

Source§

fn from(v: u8) -> Self

C++ casts the instruction’s op byte straight to LuauOpcode (LuauOpcode(LUAU_INSN_OP(insn))). Valid bytecode only carries in-range opcodes; repr(u8) makes the layout identical.

Source§

impl Hash for LuauOpcode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for LuauOpcode

Source§

fn cmp(&self, other: &LuauOpcode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for LuauOpcode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 PartialOrd for LuauOpcode

Source§

fn partial_cmp(&self, other: &LuauOpcode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for LuauOpcode

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, 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.