Enum budvm::Destination
source · pub enum Destination {
Variable(usize),
Stack,
Return,
}
Expand description
A destination for a value.
Variants§
Variable(usize)
Store the value in the 0-based variable index provided.
Stack
Push the value to the stack.
Return
Store the value in the return register.
Trait Implementations§
source§impl Clone for Destination
impl Clone for Destination
source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
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 Destination
impl Debug for Destination
source§impl Display for Destination
impl Display for Destination
source§impl<'a> From<&'a Destination> for Destination
impl<'a> From<&'a Destination> for Destination
source§fn from(source: &'a Destination) -> Self
fn from(source: &'a Destination) -> Self
Converts to this type from the input type.
source§impl PartialEq<Destination> for Destination
impl PartialEq<Destination> for Destination
source§fn eq(&self, other: &Destination) -> bool
fn eq(&self, other: &Destination) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.