pub struct IndexAccess {
pub argument_types: Option<Vec<TypeDescriptions>>,
pub base_expression: Box<Expression>,
pub id: i64,
pub index_expression: Box<Option<Expression>>,
pub is_constant: bool,
pub is_l_value: bool,
pub is_pure: bool,
pub l_value_requested: bool,
pub node_type: IndexAccessNodeType,
pub src: SourceLocation,
pub type_descriptions: TypeDescriptions,
}
Expand description
IndexAccess
JSON schema
{
"type": "object",
"required": [
"baseExpression",
"id",
"isConstant",
"isLValue",
"isPure",
"lValueRequested",
"nodeType",
"src",
"typeDescriptions"
],
"properties": {
"argumentTypes": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/TypeDescriptions"
}
},
{
"type": "null"
}
]
},
"baseExpression": {
"$ref": "#/definitions/Expression"
},
"id": {
"type": "integer"
},
"indexExpression": {
"anyOf": [
{
"$ref": "#/definitions/Expression"
},
{
"type": "null"
}
]
},
"isConstant": {
"type": "boolean"
},
"isLValue": {
"type": "boolean"
},
"isPure": {
"type": "boolean"
},
"lValueRequested": {
"type": "boolean"
},
"nodeType": {
"enum": [
"IndexAccess"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
},
"typeDescriptions": {
"$ref": "#/definitions/TypeDescriptions"
}
},
"additionalProperties": false
}
Fields§
§argument_types: Option<Vec<TypeDescriptions>>
§base_expression: Box<Expression>
§id: i64
§index_expression: Box<Option<Expression>>
§is_constant: bool
§is_l_value: bool
§is_pure: bool
§l_value_requested: bool
§node_type: IndexAccessNodeType
§src: SourceLocation
§type_descriptions: TypeDescriptions
Trait Implementations§
Source§impl Clone for IndexAccess
impl Clone for IndexAccess
Source§fn clone(&self) -> IndexAccess
fn clone(&self) -> IndexAccess
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 IndexAccess
impl Debug for IndexAccess
Source§impl<'de> Deserialize<'de> for IndexAccess
impl<'de> Deserialize<'de> for IndexAccess
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<&IndexAccess> for IndexAccess
impl From<&IndexAccess> for IndexAccess
Source§fn from(value: &IndexAccess) -> Self
fn from(value: &IndexAccess) -> Self
Converts to this type from the input type.
Source§impl From<IndexAccess> for Expression
impl From<IndexAccess> for Expression
Source§fn from(value: IndexAccess) -> Self
fn from(value: IndexAccess) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexAccess
impl RefUnwindSafe for IndexAccess
impl Send for IndexAccess
impl Sync for IndexAccess
impl Unpin for IndexAccess
impl UnwindSafe for IndexAccess
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