Enum jexl_parser::ast::Expression
source · [−]pub enum Expression {
Number(f64),
String(String),
Boolean(bool),
Array(Vec<Box<Expression>>),
Object(Vec<(String, Box<Expression>)>),
Identifier(String),
BinaryOperation {
operation: OpCode,
left: Box<Expression>,
right: Box<Expression>,
},
Transform {
name: String,
subject: Box<Expression>,
args: Option<Vec<Box<Expression>>>,
},
DotOperation {
subject: Box<Expression>,
ident: String,
},
IndexOperation {
subject: Box<Expression>,
index: Box<Expression>,
},
Conditional {
left: Box<Expression>,
truthy: Box<Expression>,
falsy: Box<Expression>,
},
Filter {
ident: String,
op: OpCode,
right: Box<Expression>,
},
}Variants
Number(f64)
String(String)
Boolean(bool)
Array(Vec<Box<Expression>>)
Object(Vec<(String, Box<Expression>)>)
Identifier(String)
BinaryOperation
Transform
DotOperation
IndexOperation
Conditional
Filter
Trait Implementations
sourceimpl Debug for Expression
impl Debug for Expression
sourceimpl PartialEq<Expression> for Expression
impl PartialEq<Expression> for Expression
sourcefn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for Expression
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more