pub enum Expr {
Show 14 variants
Number(f64),
String(String),
Bool(bool),
Null,
Var(String),
Array(Vec<Expr>),
Object(Vec<(String, Expr)>),
TypeLiteral(String),
UnaryOp {
op: UnaryOp,
expr: Box<Expr>,
},
BinaryOp {
op: BinaryOp,
left: Box<Expr>,
right: Box<Expr>,
},
FuncCall {
name: String,
args: Vec<Expr>,
},
Index {
expr: Box<Expr>,
index: Box<Expr>,
},
Property {
expr: Box<Expr>,
name: String,
},
ForAll {
predicate: Box<Expr>,
var: String,
iterable: Box<Expr>,
},
}Variants§
Number(f64)
String(String)
Bool(bool)
Null
Var(String)
Array(Vec<Expr>)
Object(Vec<(String, Expr)>)
TypeLiteral(String)
UnaryOp
BinaryOp
FuncCall
Index
Property
ForAll
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 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