pub struct BinaryOperation {Show 14 fields
pub argument_types: Option<Vec<TypeDescriptions>>,
pub common_type: TypeDescriptions,
pub function: Option<i64>,
pub id: i64,
pub is_constant: bool,
pub is_l_value: bool,
pub is_pure: bool,
pub l_value_requested: bool,
pub left_expression: Box<Expression>,
pub node_type: BinaryOperationNodeType,
pub operator: BinaryOperationOperator,
pub right_expression: Box<Expression>,
pub src: SourceLocation,
pub type_descriptions: TypeDescriptions,
}
Expand description
BinaryOperation
JSON schema
{
"type": "object",
"required": [
"commonType",
"id",
"isConstant",
"isLValue",
"isPure",
"lValueRequested",
"leftExpression",
"nodeType",
"operator",
"rightExpression",
"src",
"typeDescriptions"
],
"properties": {
"argumentTypes": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/TypeDescriptions"
}
},
{
"type": "null"
}
]
},
"commonType": {
"$ref": "#/definitions/TypeDescriptions"
},
"function": {
"type": "integer"
},
"id": {
"type": "integer"
},
"isConstant": {
"type": "boolean"
},
"isLValue": {
"type": "boolean"
},
"isPure": {
"type": "boolean"
},
"lValueRequested": {
"type": "boolean"
},
"leftExpression": {
"$ref": "#/definitions/Expression"
},
"nodeType": {
"enum": [
"BinaryOperation"
]
},
"operator": {
"enum": [
"+",
"-",
"*",
"/",
"%",
"**",
"&&",
"||",
"!=",
"==",
"<",
"<=",
">",
">=",
"^",
"&",
"|",
"<<",
">>"
]
},
"rightExpression": {
"$ref": "#/definitions/Expression"
},
"src": {
"$ref": "#/definitions/SourceLocation"
},
"typeDescriptions": {
"$ref": "#/definitions/TypeDescriptions"
}
},
"additionalProperties": false
}
Fields§
§argument_types: Option<Vec<TypeDescriptions>>
§common_type: TypeDescriptions
§function: Option<i64>
§id: i64
§is_constant: bool
§is_l_value: bool
§is_pure: bool
§l_value_requested: bool
§left_expression: Box<Expression>
§node_type: BinaryOperationNodeType
§operator: BinaryOperationOperator
§right_expression: Box<Expression>
§src: SourceLocation
§type_descriptions: TypeDescriptions
Trait Implementations§
Source§impl Clone for BinaryOperation
impl Clone for BinaryOperation
Source§fn clone(&self) -> BinaryOperation
fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BinaryOperation
impl Debug for BinaryOperation
Source§impl<'de> Deserialize<'de> for BinaryOperation
impl<'de> Deserialize<'de> for BinaryOperation
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 From<&BinaryOperation> for BinaryOperation
impl From<&BinaryOperation> for BinaryOperation
Source§fn from(value: &BinaryOperation) -> Self
fn from(value: &BinaryOperation) -> Self
Converts to this type from the input type.
Source§impl From<BinaryOperation> for Expression
impl From<BinaryOperation> for Expression
Source§fn from(value: BinaryOperation) -> Self
fn from(value: BinaryOperation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BinaryOperation
impl RefUnwindSafe for BinaryOperation
impl Send for BinaryOperation
impl Sync for BinaryOperation
impl Unpin for BinaryOperation
impl UnwindSafe for BinaryOperation
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