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