pub enum Expr {
And(Box<Expr>, Box<Expr>),
Or(Box<Expr>, Box<Expr>),
Not(Box<Expr>),
Cmp {
lhs: Operand,
op: CmpOp,
rhs: Operand,
},
Truthy(Operand),
IsNull(Operand),
IsNotNull(Operand),
In {
expr: Operand,
list: Vec<Operand>,
},
}Variants§
And(Box<Expr>, Box<Expr>)
Or(Box<Expr>, Box<Expr>)
Not(Box<Expr>)
Cmp
Truthy(Operand)
Standalone operand used as a boolean predicate.
Enables WHERE textMatches(n.bio, 'query') without requiring an
explicit comparison. Truthiness: Bool(true) → true, Bool(false)
→ false, null → false, any other non-null non-false value → true.
IsNull(Operand)
operand IS NULL — true iff the operand evaluates to null.
IsNotNull(Operand)
operand IS NOT NULL — true iff the operand is non-null.
In
expr IN [a, b, $p] or expr IN $list ($list is Value::List).
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 UnsafeUnpin 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