pub enum Operand {
Prop {
var: String,
field: String,
},
Lit(Value),
Param(String),
Var(String),
FuncCall {
name: String,
args: Vec<Operand>,
},
BinArith {
op: ArithOp,
left: Box<Operand>,
right: Box<Operand>,
},
}Variants§
Prop
Lit(Value)
Param(String)
Var(String)
Bare variable reference (used in WITH … WHERE alias > 2).
FuncCall
Scalar function call: toLower(n.name), size(n.tags), type(r), etc.
Supported functions (case-insensitive): toLower, toUpper, size,
coalesce, type, abs, round. Unknown names → named error at
execution time listing the supported set.
BinArith
Arithmetic expression inside a function argument: abs(n.age - 27),
round(n.score * 1.5). Supports +, -, *, /.
Trait Implementations§
impl StructuralPartialEq for Operand
Auto Trait Implementations§
impl Freeze for Operand
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnsafeUnpin for Operand
impl UnwindSafe for Operand
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