pub enum Expr<'a> {
Show 19 variants
BinaryExpr(BinaryExpr<'a>),
UnaryExpr(UnaryExpr<'a>),
Literal(Literal<'a>),
ColumnRef(ColumnRef<'a>),
Variable(Variable<'a>),
Error(Error<'a>),
FunctionCall(FunctionCall<'a>),
AggregateFunctionCall(AggregateFunctionCall<'a>),
OrderedSetFunctionCall(OrderedSetFunctionCall<'a>),
CastExpr(CastExpr<'a>),
CollateExpr(CollateExpr<'a>),
CaseExpr(CaseExpr<'a>),
IsExpr(IsExpr<'a>),
BetweenExpr(BetweenExpr<'a>),
LikeExpr(LikeExpr<'a>),
InExpr(InExpr<'a>),
SubqueryExpr(SubqueryExpr<'a>),
ExistsExpr(ExistsExpr<'a>),
RaiseExpr(RaiseExpr<'a>),
}Expand description
Abstract Expr — pattern-match to access the concrete type.
Variants§
BinaryExpr(BinaryExpr<'a>)
UnaryExpr(UnaryExpr<'a>)
Literal(Literal<'a>)
ColumnRef(ColumnRef<'a>)
Variable(Variable<'a>)
Error(Error<'a>)
FunctionCall(FunctionCall<'a>)
AggregateFunctionCall(AggregateFunctionCall<'a>)
OrderedSetFunctionCall(OrderedSetFunctionCall<'a>)
CastExpr(CastExpr<'a>)
CollateExpr(CollateExpr<'a>)
CaseExpr(CaseExpr<'a>)
IsExpr(IsExpr<'a>)
BetweenExpr(BetweenExpr<'a>)
LikeExpr(LikeExpr<'a>)
InExpr(InExpr<'a>)
SubqueryExpr(SubqueryExpr<'a>)
ExistsExpr(ExistsExpr<'a>)
RaiseExpr(RaiseExpr<'a>)
Implementations§
Trait Implementations§
Source§impl<'a> GrammarNodeType<'a> for Expr<'a>
impl<'a> GrammarNodeType<'a> for Expr<'a>
Source§fn from_result(
stmt_result: &'a AnyParsedStatement<'a>,
id: AnyNodeId,
) -> Option<Self>
fn from_result( stmt_result: &'a AnyParsedStatement<'a>, id: AnyNodeId, ) -> Option<Self>
Resolve
id to Self, or None if null, invalid, or tag mismatch.impl<'a> Copy for Expr<'a>
Auto Trait Implementations§
impl<'a> Freeze for Expr<'a>
impl<'a> !RefUnwindSafe for Expr<'a>
impl<'a> !Send for Expr<'a>
impl<'a> !Sync for Expr<'a>
impl<'a> Unpin for Expr<'a>
impl<'a> UnsafeUnpin for Expr<'a>
impl<'a> !UnwindSafe for Expr<'a>
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