pub struct UnaryOperation {Show 13 fields
pub argument_types: Option<Vec<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 node_type: UnaryOperationNodeType,
pub operator: UnaryOperationOperator,
pub prefix: bool,
pub src: SourceLocation,
pub sub_expression: Box<Expression>,
pub type_descriptions: TypeDescriptions,
}
Expand description
UnaryOperation
JSON schema
{
"type": "object",
"required": [
"id",
"isConstant",
"isLValue",
"isPure",
"lValueRequested",
"nodeType",
"operator",
"prefix",
"src",
"subExpression",
"typeDescriptions"
],
"properties": {
"argumentTypes": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/TypeDescriptions"
}
},
{
"type": "null"
}
]
},
"function": {
"type": "integer"
},
"id": {
"type": "integer"
},
"isConstant": {
"type": "boolean"
},
"isLValue": {
"type": "boolean"
},
"isPure": {
"type": "boolean"
},
"lValueRequested": {
"type": "boolean"
},
"nodeType": {
"enum": [
"UnaryOperation"
]
},
"operator": {
"enum": [
"++",
"--",
"-",
"!",
"delete",
"~"
]
},
"prefix": {
"type": "boolean"
},
"src": {
"$ref": "#/definitions/SourceLocation"
},
"subExpression": {
"$ref": "#/definitions/Expression"
},
"typeDescriptions": {
"$ref": "#/definitions/TypeDescriptions"
}
},
"additionalProperties": false
}
Fields§
§argument_types: Option<Vec<TypeDescriptions>>
§function: Option<i64>
§id: i64
§is_constant: bool
§is_l_value: bool
§is_pure: bool
§l_value_requested: bool
§node_type: UnaryOperationNodeType
§operator: UnaryOperationOperator
§prefix: bool
§src: SourceLocation
§sub_expression: Box<Expression>
§type_descriptions: TypeDescriptions
Trait Implementations§
Source§impl Clone for UnaryOperation
impl Clone for UnaryOperation
Source§fn clone(&self) -> UnaryOperation
fn clone(&self) -> UnaryOperation
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 UnaryOperation
impl Debug for UnaryOperation
Source§impl<'de> Deserialize<'de> for UnaryOperation
impl<'de> Deserialize<'de> for UnaryOperation
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<&UnaryOperation> for UnaryOperation
impl From<&UnaryOperation> for UnaryOperation
Source§fn from(value: &UnaryOperation) -> Self
fn from(value: &UnaryOperation) -> Self
Converts to this type from the input type.
Source§impl From<UnaryOperation> for Expression
impl From<UnaryOperation> for Expression
Source§fn from(value: UnaryOperation) -> Self
fn from(value: UnaryOperation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnaryOperation
impl RefUnwindSafe for UnaryOperation
impl Send for UnaryOperation
impl Sync for UnaryOperation
impl Unpin for UnaryOperation
impl UnwindSafe for UnaryOperation
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