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

Class Raw::StructFieldList

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

For example:

struct S { x: i32, y: i32 }
//         ^^^^^^^^^^^^^^^

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getField

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

getNumberOfFields

Gets the number of fields of this struct field list.

toString