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

Class Raw::StructField

INTERNAL: Do not use. A field in a struct declaration.

For example:

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

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getDefault

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

getName

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

getNumberOfAttrs

Gets the number of attrs of this struct field.

getTypeRepr

Gets the type representation of this struct field, if it exists.

getVisibility

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

isUnsafe

Holds if this struct field is unsafe.

toString