pub enum DExpr {
Col(String),
LitInt(i64),
LitFloat(f64),
LitBool(bool),
LitStr(String),
BinOp {
op: BinOp,
left: Box<DExpr>,
right: Box<DExpr>,
},
Not(Box<DExpr>),
And(Box<DExpr>, Box<DExpr>),
Or(Box<DExpr>, Box<DExpr>),
}Expand description
Data expression — used in filter predicates and mutate computations.
Variants§
Col(String)
Column reference: col(“name”)
LitInt(i64)
Literal integer
LitFloat(f64)
Literal float
LitBool(bool)
Literal bool
LitStr(String)
Literal string
BinOp
Binary operation
Not(Box<DExpr>)
Unary NOT
And(Box<DExpr>, Box<DExpr>)
AND of two boolean expressions
Or(Box<DExpr>, Box<DExpr>)
OR of two boolean expressions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DExpr
impl RefUnwindSafe for DExpr
impl Send for DExpr
impl Sync for DExpr
impl Unpin for DExpr
impl UnsafeUnpin for DExpr
impl UnwindSafe for DExpr
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