pub struct YulSwitch {
pub cases: Vec<YulCase>,
pub expression: YulExpression,
pub native_src: Option<SourceLocation>,
pub node_type: YulSwitchNodeType,
pub src: SourceLocation,
}
Expand description
YulSwitch
JSON schema
{
"type": "object",
"required": [
"cases",
"expression",
"nodeType",
"src"
],
"properties": {
"cases": {
"type": "array",
"items": {
"$ref": "#/definitions/YulCase"
}
},
"expression": {
"$ref": "#/definitions/YulExpression"
},
"nativeSrc": {
"$ref": "#/definitions/SourceLocation"
},
"nodeType": {
"enum": [
"YulSwitch"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
}
},
"additionalProperties": false
}
Fields§
§cases: Vec<YulCase>
§expression: YulExpression
§native_src: Option<SourceLocation>
§node_type: YulSwitchNodeType
§src: SourceLocation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for YulSwitch
impl<'de> Deserialize<'de> for YulSwitch
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<YulSwitch> for YulStatement
impl From<YulSwitch> for YulStatement
Auto Trait Implementations§
impl Freeze for YulSwitch
impl RefUnwindSafe for YulSwitch
impl Send for YulSwitch
impl Sync for YulSwitch
impl Unpin for YulSwitch
impl UnwindSafe for YulSwitch
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