pub enum Value {
Number(OrderedFloat<f64>),
String(StrRef),
Bool(bool),
Id(StrRef),
Array(VecRef),
Record(RecRef),
Access(Access),
App(App),
Binary(Binary),
Unary(Unary),
Group(ExprRef),
}Expand description
The kind of value an expression represents.
This enum contains all the different types of expressions that can appear in an EventQL query, from simple literals to complex operations.
Variants§
Number(OrderedFloat<f64>)
Numeric literal (e.g., 42, 3.14)
String(StrRef)
String literal (e.g., "hello")
Bool(bool)
Boolean literal (true or false)
Id(StrRef)
Identifier (e.g., variable name e, x)
Array(VecRef)
Array literal (e.g., [1, 2, 3])
Record(RecRef)
Record literal (e.g., {name: "Alice", age: 30})
Access(Access)
Field access (e.g., e.data.price)
App(App)
Function application (e.g., sum(e.price))
Binary(Binary)
Binary operation (e.g., a + b, x == y)
Unary(Unary)
Unary operation (e.g., -x, NOT active)
Group(ExprRef)
Grouped/parenthesized expression (e.g., (a + b))
Trait Implementations§
impl Copy for Value
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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