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