Enum partiql_ast::ast::Expr
source · pub enum Expr {
Show 17 variants
Lit(AstNode<Lit>),
VarRef(AstNode<VarRef>),
BinOp(AstNode<BinOp>),
UniOp(AstNode<UniOp>),
Like(AstNode<Like>),
Between(AstNode<Between>),
In(AstNode<In>),
Case(AstNode<Case>),
Struct(AstNode<Struct>),
Bag(AstNode<Bag>),
List(AstNode<List>),
Sexp(AstNode<Sexp>),
Path(AstNode<Path>),
Call(AstNode<Call>),
CallAgg(AstNode<CallAgg>),
Query(AstNode<Query>),
Error,
}
Expand description
The expressions that can result in values.
Variants§
Lit(AstNode<Lit>)
VarRef(AstNode<VarRef>)
Variable reference
BinOp(AstNode<BinOp>)
Binary operator
UniOp(AstNode<UniOp>)
Unary operators
Like(AstNode<Like>)
Comparison operators
Between(AstNode<Between>)
In(AstNode<In>)
Case(AstNode<Case>)
Struct(AstNode<Struct>)
Constructors
Bag(AstNode<Bag>)
List(AstNode<List>)
Sexp(AstNode<Sexp>)
Path(AstNode<Path>)
Other expression types
Call(AstNode<Call>)
CallAgg(AstNode<CallAgg>)
Query(AstNode<Query>)
Query, e.g. UNION
| EXCEPT
| INTERSECT
| SELECT
and their parts.
Error
Indicates an error occurred during query processing; The exact error details are out of band of the AST
Trait Implementations§
source§impl PartialEq<Expr> for Expr
impl PartialEq<Expr> for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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