pub struct WhileStatement {
pub body: WhileStatementBody,
pub condition: Expression,
pub documentation: Option<String>,
pub id: i64,
pub node_type: WhileStatementNodeType,
pub src: SourceLocation,
}
Expand description
WhileStatement
JSON schema
{
"type": "object",
"required": [
"body",
"condition",
"id",
"nodeType",
"src"
],
"properties": {
"body": {
"anyOf": [
{
"$ref": "#/definitions/Block"
},
{
"$ref": "#/definitions/Statement"
}
]
},
"condition": {
"$ref": "#/definitions/Expression"
},
"documentation": {
"type": "string"
},
"id": {
"type": "integer"
},
"nodeType": {
"enum": [
"WhileStatement"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
}
},
"additionalProperties": false
}
Fields§
§body: WhileStatementBody
§condition: Expression
§documentation: Option<String>
§id: i64
§node_type: WhileStatementNodeType
§src: SourceLocation
Trait Implementations§
Source§impl Clone for WhileStatement
impl Clone for WhileStatement
Source§fn clone(&self) -> WhileStatement
fn clone(&self) -> WhileStatement
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 WhileStatement
impl Debug for WhileStatement
Source§impl<'de> Deserialize<'de> for WhileStatement
impl<'de> Deserialize<'de> for WhileStatement
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<&WhileStatement> for WhileStatement
impl From<&WhileStatement> for WhileStatement
Source§fn from(value: &WhileStatement) -> Self
fn from(value: &WhileStatement) -> Self
Converts to this type from the input type.
Source§impl From<WhileStatement> for Statement
impl From<WhileStatement> for Statement
Source§fn from(value: WhileStatement) -> Self
fn from(value: WhileStatement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WhileStatement
impl RefUnwindSafe for WhileStatement
impl Send for WhileStatement
impl Sync for WhileStatement
impl Unpin for WhileStatement
impl UnwindSafe for WhileStatement
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