pub enum Expression<'s> {
Show 19 variants
Parens(ParensExpression<'s>),
Literal(LiteralExpression<'s>),
Var(VarExpression<'s>),
RootVar(RootVarExpression<'s>),
Index(IndexExpression<'s>),
Property(PropertyExpression<'s>),
Ternary(TernaryExpression<'s>),
Binary(BinaryExpression<'s>),
Prefix(PrefixExpression<'s>),
Postfix(PostfixExpression<'s>),
Comma(CommaExpression<'s>),
Table(TableExpression<'s>),
Class(ClassExpression<'s>),
Array(ArrayExpression<'s>),
Function(FunctionExpression<'s>),
Call(CallExpression<'s>),
Delegate(DelegateExpression<'s>),
Vector(VectorExpression<'s>),
Expect(ExpectExpression<'s>),
}Expand description
An expression.
Many types of expressions are recursive, containing other expressions. Precedence is used to determine how to parse these expressions.
Variants§
Parens(ParensExpression<'s>)
Literal(LiteralExpression<'s>)
Var(VarExpression<'s>)
RootVar(RootVarExpression<'s>)
Index(IndexExpression<'s>)
Property(PropertyExpression<'s>)
Ternary(TernaryExpression<'s>)
Binary(BinaryExpression<'s>)
Prefix(PrefixExpression<'s>)
Postfix(PostfixExpression<'s>)
Comma(CommaExpression<'s>)
Table(TableExpression<'s>)
Class(ClassExpression<'s>)
Array(ArrayExpression<'s>)
Function(FunctionExpression<'s>)
Call(CallExpression<'s>)
Delegate(DelegateExpression<'s>)
Vector(VectorExpression<'s>)
Expect(ExpectExpression<'s>)
Trait Implementations§
Source§impl<'s> Clone for Expression<'s>
impl<'s> Clone for Expression<'s>
Source§fn clone(&self) -> Expression<'s>
fn clone(&self) -> Expression<'s>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'s> Freeze for Expression<'s>
impl<'s> RefUnwindSafe for Expression<'s>
impl<'s> Send for Expression<'s>
impl<'s> Sync for Expression<'s>
impl<'s> Unpin for Expression<'s>
impl<'s> UnwindSafe for Expression<'s>
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