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

Class Raw::StructPatFieldList

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

For example:

let Foo { a, b } = foo;
//        ^^^^^

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getField

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

getNumberOfFields

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

getRestPat

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

toString