Enum muse_lang::vm::bitcode::ValueOrSource
source · pub enum ValueOrSource {
Primitive(Primitive),
Symbol(Symbol),
Regex(RegexLiteral),
Function(BitcodeFunction),
Struct(BitcodeStruct),
Enum(BitcodeEnum),
Register(Register),
Stack(Stack),
Label(Label),
}Expand description
A value or a source of a value.
Variants§
Primitive(Primitive)
Symbol(Symbol)
Regex(RegexLiteral)
A regular expression literal. When loaded, it is compiled into a
MuseRegex.
Function(BitcodeFunction)
A function declaration. When loaded, it becomes a Function.
Struct(BitcodeStruct)
A struct definition.
Enum(BitcodeEnum)
An enum definition.
Register(Register)
A virtual machine register.
Stack(Stack)
A location on the stack.
Label(Label)
A label representing an instruction offset.
Implementations§
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<'de> Deserialize<'de> for ValueOrSource
impl<'de> Deserialize<'de> for ValueOrSource
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 ValueOrSource
impl From<()> for ValueOrSource
source§impl From<Arity> for ValueOrSource
impl From<Arity> for ValueOrSource
source§impl From<BitcodeEnum> for ValueOrSource
impl From<BitcodeEnum> for ValueOrSource
source§fn from(value: BitcodeEnum) -> Self
fn from(value: BitcodeEnum) -> Self
Converts to this type from the input type.
source§impl From<BitcodeFunction> for ValueOrSource
impl From<BitcodeFunction> for ValueOrSource
source§fn from(value: BitcodeFunction) -> Self
fn from(value: BitcodeFunction) -> Self
Converts to this type from the input type.
source§impl From<BitcodeStruct> for ValueOrSource
impl From<BitcodeStruct> for ValueOrSource
source§fn from(value: BitcodeStruct) -> Self
fn from(value: BitcodeStruct) -> Self
Converts to this type from the input type.
source§impl From<Label> for ValueOrSource
impl From<Label> for ValueOrSource
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<RegexLiteral> for ValueOrSource
impl From<RegexLiteral> for ValueOrSource
source§fn from(value: RegexLiteral) -> Self
fn from(value: RegexLiteral) -> Self
Converts to this type from the input type.
source§impl From<Register> for ValueOrSource
impl From<Register> for ValueOrSource
source§impl From<Stack> for ValueOrSource
impl From<Stack> for ValueOrSource
source§impl From<Symbol> for ValueOrSource
impl From<Symbol> for ValueOrSource
source§impl From<bool> for ValueOrSource
impl From<bool> for ValueOrSource
source§impl From<f64> for ValueOrSource
impl From<f64> for ValueOrSource
source§impl From<i16> for ValueOrSource
impl From<i16> for ValueOrSource
source§impl From<i32> for ValueOrSource
impl From<i32> for ValueOrSource
source§impl From<i64> for ValueOrSource
impl From<i64> for ValueOrSource
source§impl From<i8> for ValueOrSource
impl From<i8> for ValueOrSource
source§impl From<u16> for ValueOrSource
impl From<u16> for ValueOrSource
source§impl From<u32> for ValueOrSource
impl From<u32> for ValueOrSource
source§impl From<u64> for ValueOrSource
impl From<u64> for ValueOrSource
source§impl From<u8> for ValueOrSource
impl From<u8> for ValueOrSource
source§impl PartialEq for ValueOrSource
impl PartialEq for ValueOrSource
source§impl Serialize for ValueOrSource
impl Serialize for ValueOrSource
source§impl TryFrom<Literal> for ValueOrSource
impl TryFrom<Literal> for ValueOrSource
impl StructuralPartialEq for ValueOrSource
Auto Trait Implementations§
impl Freeze for ValueOrSource
impl RefUnwindSafe for ValueOrSource
impl Send for ValueOrSource
impl Sync for ValueOrSource
impl Unpin for ValueOrSource
impl UnwindSafe for ValueOrSource
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)