Enum budvm::ValueOrSource
source · pub enum ValueOrSource {
Value(Value),
Argument(usize),
Variable(usize),
Stack,
}
Expand description
A value or a location of a value
Variants§
Value(Value)
A value.
Argument(usize)
The value is in an argument at the provided 0-based index.
Variable(usize)
The value is in a variable at the provided 0-based index.
Stack
The value is popped from the stack
The order of popping is the order the fields apear in the `Instruction
Trait Implementations§
source§impl Clone for ValueOrSource
impl Clone for ValueOrSource
source§fn clone(&self) -> ValueOrSource
fn clone(&self) -> ValueOrSource
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 ValueOrSource
impl Debug for ValueOrSource
source§impl Display for ValueOrSource
impl Display for ValueOrSource
source§impl PartialEq<ValueOrSource> for ValueOrSource
impl PartialEq<ValueOrSource> for ValueOrSource
source§fn eq(&self, other: &ValueOrSource) -> bool
fn eq(&self, other: &ValueOrSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.