pub struct YulFunctionDefinition {
pub body: YulBlock,
pub name: String,
pub native_src: Option<SourceLocation>,
pub node_type: YulFunctionDefinitionNodeType,
pub parameters: Vec<YulTypedName>,
pub return_variables: Option<Vec<YulTypedName>>,
pub src: SourceLocation,
}
Expand description
YulFunctionDefinition
JSON schema
{
"type": "object",
"required": [
"body",
"name",
"nodeType",
"parameters",
"returnVariables",
"src"
],
"properties": {
"body": {
"$ref": "#/definitions/YulBlock"
},
"name": {
"type": "string"
},
"nativeSrc": {
"$ref": "#/definitions/SourceLocation"
},
"nodeType": {
"enum": [
"YulFunctionDefinition"
]
},
"parameters": {
"type": "array",
"items": {
"$ref": "#/definitions/YulTypedName"
}
},
"returnVariables": {
"type": "array",
"items": {
"$ref": "#/definitions/YulTypedName"
}
},
"src": {
"$ref": "#/definitions/SourceLocation"
}
},
"additionalProperties": false
}
Fields§
§body: YulBlock
§name: String
§native_src: Option<SourceLocation>
§node_type: YulFunctionDefinitionNodeType
§parameters: Vec<YulTypedName>
§return_variables: Option<Vec<YulTypedName>>
§src: SourceLocation
Trait Implementations§
Source§impl Clone for YulFunctionDefinition
impl Clone for YulFunctionDefinition
Source§fn clone(&self) -> YulFunctionDefinition
fn clone(&self) -> YulFunctionDefinition
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 YulFunctionDefinition
impl Debug for YulFunctionDefinition
Source§impl<'de> Deserialize<'de> for YulFunctionDefinition
impl<'de> Deserialize<'de> for YulFunctionDefinition
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<&YulFunctionDefinition> for YulFunctionDefinition
impl From<&YulFunctionDefinition> for YulFunctionDefinition
Source§fn from(value: &YulFunctionDefinition) -> Self
fn from(value: &YulFunctionDefinition) -> Self
Converts to this type from the input type.
Source§impl From<YulFunctionDefinition> for YulStatement
impl From<YulFunctionDefinition> for YulStatement
Source§fn from(value: YulFunctionDefinition) -> Self
fn from(value: YulFunctionDefinition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for YulFunctionDefinition
impl RefUnwindSafe for YulFunctionDefinition
impl Send for YulFunctionDefinition
impl Sync for YulFunctionDefinition
impl Unpin for YulFunctionDefinition
impl UnwindSafe for YulFunctionDefinition
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