pub enum Expression {
Show 14 variants
Literal(Literal),
Tuple(TupleExpression),
ArrayRange(ArrayRangeExpression),
ArrayList(ArrayListExpression),
String(FormatString),
QualifiedName(QualifiedName),
Marker(Identifier),
BinaryOperation(BinaryOperation),
UnaryOperation(UnaryOperation),
Block(StatementList),
Call(Call),
ElementAccess(ElementAccess),
If(If),
Error(Span),
}Expand description
Any expression.
Variants§
Literal(Literal)
Tuple(TupleExpression)
ArrayRange(ArrayRangeExpression)
ArrayList(ArrayListExpression)
String(FormatString)
QualifiedName(QualifiedName)
Marker(Identifier)
BinaryOperation(BinaryOperation)
UnaryOperation(UnaryOperation)
Block(StatementList)
Call(Call)
ElementAccess(ElementAccess)
If(If)
Error(Span)
Implementations§
Trait Implementations§
Source§impl Debug for Expression
impl Debug for Expression
Source§impl PartialEq for Expression
impl PartialEq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.