Enum full_moon::ast::Value [−][src]
#[non_exhaustive] pub enum Value { Function((TokenReference, FunctionBody)), FunctionCall(FunctionCall), TableConstructor(TableConstructor), Number(TokenReference), ParenthesesExpression(Expression), String(TokenReference), Symbol(TokenReference), Var(Var), }
Expand description
Values that cannot be used standalone, but as part of things such as Stmt
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
An anonymous function, such as function() end)
Tuple Fields of Function
A call of a function, such as call()
Tuple Fields of FunctionCall
0: FunctionCall
A table constructor, such as { 1, 2, 3 }
Tuple Fields of TableConstructor
A number token, such as 3.3
Tuple Fields of Number
An expression between parentheses, such as (3 + 2)
Tuple Fields of ParenthesesExpression
0: Expression
A string token, such as "hello"
Tuple Fields of String
A symbol, such as true
Tuple Fields of Symbol
A more complex value, such as call().x
Tuple Fields of Var
0: Var
Trait Implementations
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
The start position of a node. None if can’t be determined
The end position of a node. None if it can’t be determined
Whether another node of the same type is the same as this one semantically, ignoring position
The token references that comprise a node
The full range of a node, if it has both start and end positions
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more