Enum muse_lang::vm::bitcode::OpDestination
source · pub enum OpDestination {
Void,
Register(Register),
Stack(Stack),
Label(Label),
}Expand description
A destination for an operation.
Variants§
Void
Ignore the result of the operation.
Register(Register)
Store the result in the provided register.
Stack(Stack)
Store the result at a given stack offset.
Label(Label)
Jump to the label if the value is truthy.
Trait Implementations§
source§impl Clone for OpDestination
impl Clone for OpDestination
source§fn clone(&self) -> OpDestination
fn clone(&self) -> OpDestination
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 OpDestination
impl Debug for OpDestination
source§impl<'de> Deserialize<'de> for OpDestination
impl<'de> Deserialize<'de> for OpDestination
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<()> for OpDestination
impl From<()> for OpDestination
source§impl From<Label> for OpDestination
impl From<Label> for OpDestination
source§impl From<OpDestination> for ValueOrSource
impl From<OpDestination> for ValueOrSource
source§fn from(value: OpDestination) -> Self
fn from(value: OpDestination) -> Self
Converts to this type from the input type.
source§impl From<Register> for OpDestination
impl From<Register> for OpDestination
source§impl From<Stack> for OpDestination
impl From<Stack> for OpDestination
source§impl PartialEq for OpDestination
impl PartialEq for OpDestination
source§impl Serialize for OpDestination
impl Serialize for OpDestination
impl Copy for OpDestination
impl Eq for OpDestination
impl StructuralPartialEq for OpDestination
Auto Trait Implementations§
impl Freeze for OpDestination
impl RefUnwindSafe for OpDestination
impl Send for OpDestination
impl Sync for OpDestination
impl Unpin for OpDestination
impl UnwindSafe for OpDestination
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
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more