pub enum FunctionValue {
Boolean(bool),
Byte(u8),
Integer(i64),
Float(f64),
Block(Block),
Instruction(InstructionData),
Symbol(String),
}Expand description
An enum that allows the different types of data.
Variants§
Boolean(bool)
A standard boolean.
Byte(u8)
A standard integer.
Integer(i64)
A standard 64-bit integer.
Float(f64)
A standard 64-bit float.
Block(Block)
A block pointer.
Instruction(InstructionData)
An instruction call.
Symbol(String)
A reference to a symbol.
Trait Implementations§
Source§impl Clone for FunctionValue
impl Clone for FunctionValue
Source§fn clone(&self) -> FunctionValue
fn clone(&self) -> FunctionValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FunctionValue
impl RefUnwindSafe for FunctionValue
impl Send for FunctionValue
impl Sync for FunctionValue
impl Unpin for FunctionValue
impl UnsafeUnpin for FunctionValue
impl UnwindSafe for FunctionValue
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