pub struct YulLiteralValue {
pub kind: YulLiteralValueKind,
pub native_src: Option<SourceLocation>,
pub node_type: YulLiteralValueNodeType,
pub src: SourceLocation,
pub type_: String,
pub value: String,
}
Expand description
YulLiteralValue
JSON schema
{
"type": "object",
"required": [
"kind",
"nodeType",
"src",
"type",
"value"
],
"properties": {
"kind": {
"enum": [
"number",
"string",
"bool"
]
},
"nativeSrc": {
"$ref": "#/definitions/SourceLocation"
},
"nodeType": {
"enum": [
"YulLiteral"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
},
"type": {
"type": "string"
},
"value": {
"type": "string"
}
},
"additionalProperties": false
}
Fields§
§kind: YulLiteralValueKind
§native_src: Option<SourceLocation>
§node_type: YulLiteralValueNodeType
§src: SourceLocation
§type_: String
§value: String
Trait Implementations§
Source§impl Clone for YulLiteralValue
impl Clone for YulLiteralValue
Source§fn clone(&self) -> YulLiteralValue
fn clone(&self) -> YulLiteralValue
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 YulLiteralValue
impl Debug for YulLiteralValue
Source§impl<'de> Deserialize<'de> for YulLiteralValue
impl<'de> Deserialize<'de> for YulLiteralValue
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<&YulLiteralValue> for YulLiteralValue
impl From<&YulLiteralValue> for YulLiteralValue
Source§fn from(value: &YulLiteralValue) -> Self
fn from(value: &YulLiteralValue) -> Self
Converts to this type from the input type.
Source§impl From<YulLiteralValue> for YulLiteral
impl From<YulLiteralValue> for YulLiteral
Source§fn from(value: YulLiteralValue) -> Self
fn from(value: YulLiteralValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for YulLiteralValue
impl RefUnwindSafe for YulLiteralValue
impl Send for YulLiteralValue
impl Sync for YulLiteralValue
impl Unpin for YulLiteralValue
impl UnwindSafe for YulLiteralValue
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