pub enum OpCode {
Show 42 variants
OpReturn,
OpPop,
OpDefineGlobal(usize),
OpGetGlobal(usize),
OpSetGlobal(usize),
OpGetSuper(usize),
OpCallGlobal(usize, usize, usize),
OpGetModuleVar(usize, usize),
OpGetLocal(usize),
OpSetLocal(usize),
OpInvoke(usize, usize, usize),
OpImport(usize),
OpGetProperty(usize),
OpSetProperty(usize),
OpGetUpvalue(usize),
OpSetUpvalue(usize),
OpClosure,
OpJump(usize),
OpJumpIfFalse(usize),
OpLoop(usize),
OpCall(usize, usize),
OpClass(usize),
OpConstant(usize),
OpNil,
OpTrue,
OpFalse,
OpNegate,
OpNot,
OpAdd,
OpSubtract,
OpMultiply,
OpDivide,
OpEqual,
OpGreater,
OpLess,
OpPrint,
OpGetIndex,
OpSetIndex,
OpCreateList(usize),
OpCreateString,
OpCreateHashMap(usize),
OpWait,
}
Variants§
OpReturn
OpPop
OpDefineGlobal(usize)
OpGetGlobal(usize)
OpSetGlobal(usize)
OpGetSuper(usize)
OpCallGlobal(usize, usize, usize)
OpGetModuleVar(usize, usize)
OpGetLocal(usize)
OpSetLocal(usize)
OpInvoke(usize, usize, usize)
Combines a GetProperty and a Call. Contains the exact same information. First usize is the index for the property name, second is for the arity, third is for the module index
OpImport(usize)
OpGetProperty(usize)
OpSetProperty(usize)
OpGetUpvalue(usize)
OpSetUpvalue(usize)
OpClosure
OpJump(usize)
OpJumpIfFalse(usize)
OpLoop(usize)
OpCall(usize, usize)
OpClass(usize)
OpConstant(usize)
OpNil
OpTrue
OpFalse
OpNegate
OpNot
OpAdd
OpSubtract
OpMultiply
OpDivide
OpEqual
OpGreater
OpLess
OpPrint
OpGetIndex
OpSetIndex
OpCreateList(usize)
OpCreateString
OpCreateHashMap(usize)
Creates a hashmap of the last 2n items, where the first value is the key and the second one is the value
OpWait
Waits until enter is pressed before continuing
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpCode
impl<'de> Deserialize<'de> for OpCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialOrd for OpCode
impl PartialOrd for OpCode
impl Copy 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