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

Class Raw::Variant

INTERNAL: Do not use. A variant in an enum declaration.

For example:

enum E { A, B(i32), C { x: i32 } }
//       ^  ^^^^^^  ^^^^^^^^^^^^

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getDiscriminant

Gets the discriminant of this variant, if it exists.

getFieldList

Gets the field list of this variant, if it exists.

getName

Gets the name of this variant, if it exists.

getNumberOfAttrs

Gets the number of attrs of this variant.

getVisibility

Gets the visibility of this variant, if it exists.

toString