Enum budvm::CompareAction
source · pub enum CompareAction {
Store(Destination),
JumpIfFalse(usize),
}
Expand description
An action to take during an Instruction::Compare
.
Variants§
Store(Destination)
Store the boolean result in the destination indicated.
JumpIfFalse(usize)
If the comparison is false, jump to the 0-based instruction index indicated.
Trait Implementations§
source§impl Clone for CompareAction
impl Clone for CompareAction
source§fn clone(&self) -> CompareAction
fn clone(&self) -> CompareAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompareAction
impl Debug for CompareAction
source§impl Display for CompareAction
impl Display for CompareAction
source§impl PartialEq<CompareAction> for CompareAction
impl PartialEq<CompareAction> for CompareAction
source§fn eq(&self, other: &CompareAction) -> bool
fn eq(&self, other: &CompareAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.