pub enum Expr {
Column(String),
Literal(Scalar),
BinaryOp {
left: Box<Expr>,
op: Operator,
right: Box<Expr>,
},
UnaryOp {
op: UnaryOperator,
expr: Box<Expr>,
},
Agg {
func: AggFunc,
expr: Box<Expr>,
},
Alias {
expr: Box<Expr>,
name: String,
},
Wildcard,
}Expand description
Expression AST and supporting enums.
Expression AST used by DataFrame and LazyFrame.
Variants§
Column(String)
Column reference.
Literal(Scalar)
Literal scalar value.
BinaryOp
Binary operator expression.
UnaryOp
Unary operator expression.
Agg
Aggregation expression (only valid under group_by().agg()).
Alias
Expression alias (renames the resulting column).
Wildcard
Wildcard (*) that expands to all columns in projections.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
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