Enum ketos::bytecode::JumpInstruction
[−]
[src]
pub enum JumpInstruction { Jump, JumpIf, JumpIfBound(u32), JumpIfNot, JumpIfNull, JumpIfNotNull, JumpIfEq, JumpIfNotEq, JumpIfEqConst(u32), JumpIfNotEqConst(u32), }
Partial representation of jump Instruction
variants before label values
have been determined.
Variants
Jump
JumpIf
JumpIfBound(u32)
JumpIfNot
JumpIfNull
JumpIfNotNull
JumpIfEq
JumpIfNotEq
JumpIfEqConst(u32)
JumpIfNotEqConst(u32)
Methods
impl JumpInstruction
[src]
fn set_label(self, label: u32) -> Instruction
Returns an Instruction
by inserting the given label value.
fn len(&self, short: bool) -> usize
Length, in bytes, of this jump instruction.
Trait Implementations
impl Copy for JumpInstruction
[src]
impl Clone for JumpInstruction
[src]
fn clone(&self) -> JumpInstruction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for JumpInstruction
[src]
impl Eq for JumpInstruction
[src]
impl PartialEq for JumpInstruction
[src]
fn eq(&self, __arg_0: &JumpInstruction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &JumpInstruction) -> bool
This method tests for !=
.