pub enum ExprKind {
Null,
Bool {
value: bool,
},
Int {
value: i64,
},
Float {
value: f64,
},
String {
value: String,
},
Array {
items: Vec<AstExpression>,
},
Identifier {
name: String,
},
Member {
receiver: Box<AstExpression>,
name: String,
},
FunctionCall {
name: String,
args: Vec<AstExpression>,
},
MethodCall {
receiver: Box<AstExpression>,
name: String,
args: Vec<AstExpression>,
},
Unary {
op: UnaryOp,
expr: Box<AstExpression>,
},
Binary {
left: Box<AstExpression>,
op: BinaryOp,
right: Box<AstExpression>,
},
}Variants§
Null
Bool
Int
Float
String
Array
Fields
§
items: Vec<AstExpression>Identifier
Member
FunctionCall
MethodCall
Unary
Binary
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExprKind
impl<'de> Deserialize<'de> for ExprKind
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
impl StructuralPartialEq for ExprKind
Auto Trait Implementations§
impl Freeze for ExprKind
impl RefUnwindSafe for ExprKind
impl Send for ExprKind
impl Sync for ExprKind
impl Unpin for ExprKind
impl UnsafeUnpin for ExprKind
impl UnwindSafe for ExprKind
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