Enum stak_code::Instruction
source · pub enum Instruction {
Call(u64, Operand),
Set(Operand),
Get(Operand),
Constant(Operand),
Nop(u64),
Skip(u64),
}
Expand description
An instruction.
Variants§
Call(u64, Operand)
A call
instruction.
Set(Operand)
A set
instruction.
Get(Operand)
A get
instruction.
Constant(Operand)
A constant
instruction.
Nop(u64)
A nop
instruction.
Skip(u64)
A skip
instruction.
It is used only for encoding.
Implementations§
Trait Implementations§
source§impl Debug for Instruction
impl Debug for Instruction
source§impl PartialEq for Instruction
impl PartialEq for Instruction
source§fn eq(&self, other: &Instruction) -> bool
fn eq(&self, other: &Instruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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