Enum runestick::ConstValue [−][src]
pub enum ConstValue {}Show 13 variants
Unit, Byte(u8), Char(char), Bool(bool), Integer(i64), Float(f64), String(String), StaticString(Arc<StaticString>), Bytes(Bytes), Vec(Vec<ConstValue>), Tuple(Box<[ConstValue]>), Object(HashMap<String, ConstValue>), Option(Option<Box<ConstValue>>),
Expand description
A constant value.
Variants
A constant unit.
A byte.
Tuple Fields of Byte
0: u8
A character.
Tuple Fields of Char
0: char
A boolean constant value.
Tuple Fields of Bool
0: bool
An integer constant.
Tuple Fields of Integer
0: i64
An float constant.
Tuple Fields of Float
0: f64
A string constant designated by its slot.
Tuple Fields of String
0: String
A static string.
Tuple Fields of StaticString
0: Arc<StaticString>
A byte string.
Tuple Fields of Bytes
0: Bytes
A vector of values.
Tuple Fields of Vec
0: Vec<ConstValue>
An anonymous tuple.
Tuple Fields of Tuple
0: Box<[ConstValue]>
An anonymous object.
Tuple Fields of Object
0: HashMap<String, ConstValue>
An option.
Tuple Fields of Option
0: Option<Box<ConstValue>>
Implementations
Convert into virtual machine value.
We provide this associated method since a constant value can be converted into a value infallibly, which is not captured by the trait otherwise.
Trait Implementations
Deserialize implementation for value.
Deserialize this value from the given Serde deserializer. Read more
Try to convert to the given type, from the given value.
Serialize implementation for value.
Auto Trait Implementations
impl RefUnwindSafe for ConstValue
impl Send for ConstValue
impl Sync for ConstValue
impl Unpin for ConstValue
impl UnwindSafe for ConstValue
Blanket Implementations
Mutably borrows from an owned value. Read more