#[repr(u8)]pub enum Opcode {
Show 30 variants
OpConst = 0,
OpAdd = 1,
OpPop = 2,
OpSub = 3,
OpMul = 4,
OpDiv = 5,
OpTrue = 6,
OpFalse = 7,
OpEqual = 8,
OpNotEqual = 9,
OpGreaterThan = 10,
OpMinus = 11,
OpBang = 12,
OpJumpNotTruthy = 13,
OpJump = 14,
OpNull = 15,
OpGetGlobal = 16,
OpSetGlobal = 17,
OpArray = 18,
OpHash = 19,
OpIndex = 20,
OpCall = 21,
OpReturnValue = 22,
OpReturn = 23,
OpGetLocal = 24,
OpSetLocal = 25,
OpGetBuiltin = 26,
OpClosure = 27,
OpGetFree = 28,
OpCurrentClosure = 29,
}
Variants§
OpConst = 0
OpAdd = 1
OpPop = 2
OpSub = 3
OpMul = 4
OpDiv = 5
OpTrue = 6
OpFalse = 7
OpEqual = 8
OpNotEqual = 9
OpGreaterThan = 10
OpMinus = 11
OpBang = 12
OpJumpNotTruthy = 13
OpJump = 14
OpNull = 15
OpGetGlobal = 16
OpSetGlobal = 17
OpArray = 18
OpHash = 19
OpIndex = 20
OpCall = 21
OpReturnValue = 22
OpReturn = 23
OpGetLocal = 24
OpSetLocal = 25
OpGetBuiltin = 26
OpClosure = 27
OpGetFree = 28
OpCurrentClosure = 29
Trait Implementations§
Source§impl IntoEnumIterator for Opcode
impl IntoEnumIterator for Opcode
type Iterator = OpcodeIter
fn iter() -> OpcodeIter ⓘ
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 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