CodeQL library for Rust
codeql/rust-all 0.2.12 (changelog, source)
Search

Class Raw::StructExprFieldList

INTERNAL: Do not use. A list of fields in a struct expression.

For example:

Foo { a: 1, b: 2 }
//    ^^^^^^^^^^^

Import path

import codeql.rust.elements.internal.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getAttr

Gets the indexth attr of this struct expression field list (0-based).

getField

Gets the indexth field of this struct expression field list (0-based).

getNumberOfAttrs

Gets the number of attrs of this struct expression field list.

getNumberOfFields

Gets the number of fields of this struct expression field list.

getSpread

Gets the spread of this struct expression field list, if it exists.

toString