pub struct ArrayTypeName {
pub base_type: TypeName,
pub id: i64,
pub length: Option<Expression>,
pub node_type: ArrayTypeNameNodeType,
pub src: SourceLocation,
pub type_descriptions: TypeDescriptions,
}
Expand description
ArrayTypeName
JSON schema
{
"type": "object",
"required": [
"baseType",
"id",
"nodeType",
"src",
"typeDescriptions"
],
"properties": {
"baseType": {
"$ref": "#/definitions/TypeName"
},
"id": {
"type": "integer"
},
"length": {
"anyOf": [
{
"$ref": "#/definitions/Expression"
},
{
"type": "null"
}
]
},
"nodeType": {
"enum": [
"ArrayTypeName"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
},
"typeDescriptions": {
"$ref": "#/definitions/TypeDescriptions"
}
},
"additionalProperties": false
}
Fields§
§base_type: TypeName
§id: i64
§length: Option<Expression>
§node_type: ArrayTypeNameNodeType
§src: SourceLocation
§type_descriptions: TypeDescriptions
Trait Implementations§
Source§impl Clone for ArrayTypeName
impl Clone for ArrayTypeName
Source§fn clone(&self) -> ArrayTypeName
fn clone(&self) -> ArrayTypeName
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 ArrayTypeName
impl Debug for ArrayTypeName
Source§impl<'de> Deserialize<'de> for ArrayTypeName
impl<'de> Deserialize<'de> for ArrayTypeName
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<&ArrayTypeName> for ArrayTypeName
impl From<&ArrayTypeName> for ArrayTypeName
Source§fn from(value: &ArrayTypeName) -> Self
fn from(value: &ArrayTypeName) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArrayTypeName
impl RefUnwindSafe for ArrayTypeName
impl Send for ArrayTypeName
impl Sync for ArrayTypeName
impl Unpin for ArrayTypeName
impl UnwindSafe for ArrayTypeName
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