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

Class Raw::StructPatField

INTERNAL: Do not use. A field in a struct pattern. For example a: 1 in:

let Foo { a: 1, b: 2 } = foo;

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getIdentifier

Gets the identifier of this struct pattern field, if it exists.

getNumberOfAttrs

Gets the number of attrs of this struct pattern field.

getPat

Gets the pattern of this struct pattern field, if it exists.

toString