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