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

Class Raw::VariantList

INTERNAL: Do not use. A list of variants in an enum declaration.

For example:

enum E { A, B, C }
//     ^^^^^^^^^^^

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getNumberOfVariants

Gets the number of variants of this variant list.

getVariant

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

toString