This enum represents a single opcode. Under the hood, it's just a byte. This allows non opcode bytes to be inserted in bytecode streams.
Load a constant.
Delete a value off the stack.
Copies topmost value on the stack.
Moves a variable onto the heap.
Save a constant into a variable.
Save a value to a captured variable.
Push a copy of a variable onto the stack.
Load a copy of a captured variable.
Call a function.
Return from a function.
Creates a closure over the current local environment.
Prints a value.
Constructs a label.
Destructures a label.
Destructures atomic data by asserting it matches exactly
Convert a raw byte to an opcode. Note that non-opcode bytes should never be interpreted as an opcode. Under the hood, this is just a transmute, so the regular cautions apply. This should never cause a crash and if it does, the vm's designed to crash hard so it'll be pretty obvious.
impl RefUnwindSafe for Opcode
impl UnwindSafe for Opcode
type Error = Infallible
The type returned in the event of a conversion error.