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

Class Raw::Enum

INTERNAL: Do not use. 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

getVariantList

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

toString

Inherited predicates

getAttr

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

from TypeItem
getAttributeMacroExpansion

Gets the attribute macro expansion of this item, if it exists.

from Item
getDeriveMacroExpansion

Gets the indexth derive macro expansion of this type item (0-based).

from TypeItem
getGenericParamList

Gets the generic parameter list of this type item, if it exists.

from TypeItem
getName

Gets the name of this type item, if it exists.

from TypeItem
getNumberOfAttrs

Gets the number of attrs of this type item.

from TypeItem
getNumberOfDeriveMacroExpansions

Gets the number of derive macro expansions of this type item.

from TypeItem
getVisibility

Gets the visibility of this type item, if it exists.

from TypeItem
getWhereClause

Gets the where clause of this type item, if it exists.

from TypeItem