pub enum Expr {
Show 16 variants
Null,
If {
condition: Box<Spanned<Self>>,
then: Box<Spanned<Self>>,
otherwise: Box<Spanned<Self>>,
},
Number(f64),
String(String),
MultilineString {
value: String,
tag: String,
},
Boolean(bool),
Array(Vec<Spanned<Self>>),
Object(HashMap<String, Spanned<Expr>>),
Identifier(String),
Environment(String),
Attribute(Box<Spanned<Self>>, String),
Slice(Box<Spanned<Self>>, Box<Spanned<Self>>),
UnaryOp(UnaryOpType, Box<Spanned<Self>>),
MethodCall {
callee: Box<Spanned<Self>>,
name: String,
arguments: Vec<Spanned<Self>>,
},
BinaryOp {
lhs: Box<Spanned<Self>>,
op: BinaryOpType,
rhs: Box<Spanned<Self>>,
},
Invalid,
}Variants§
Null
If
Number(f64)
String(String)
MultilineString
Boolean(bool)
Array(Vec<Spanned<Self>>)
Object(HashMap<String, Spanned<Expr>>)
Identifier(String)
Environment(String)
Attribute(Box<Spanned<Self>>, String)
Slice(Box<Spanned<Self>>, Box<Spanned<Self>>)
UnaryOp(UnaryOpType, Box<Spanned<Self>>)
MethodCall
BinaryOp
Invalid
Trait Implementations§
source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Expr
impl PartialEq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
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