Enum lucia_lang::code::ConstlValue
source · pub enum ConstlValue {
Null,
Bool(bool),
Int(i64),
Float(f64),
Str(String),
Func(Code),
}Expand description
The const value.
Variants§
Null
“null”
Bool(bool)
“true”, “false”
Int(i64)
“12”, “0o100”, “0b110”
Float(f64)
“12.34”, “0b100.100”
Str(String)
““abc”“, ““abc”
Func(Code)
A function.
Trait Implementations§
source§impl Clone for ConstlValue
impl Clone for ConstlValue
source§fn clone(&self) -> ConstlValue
fn clone(&self) -> ConstlValue
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 ConstlValue
impl Debug for ConstlValue
source§impl Display for ConstlValue
impl Display for ConstlValue
source§impl PartialEq<ConstlValue> for ConstlValue
impl PartialEq<ConstlValue> for ConstlValue
source§fn eq(&self, other: &ConstlValue) -> bool
fn eq(&self, other: &ConstlValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.