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

Class Raw::TypeItem

INTERNAL: Do not use. An item that defines a type. Either a Struct, Enum, or Union.

Import path

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

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    getAttr

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

    getDeriveMacroExpansion

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

    getGenericParamList

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

    getName

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

    getNumberOfAttrs

    Gets the number of attrs of this type item.

    getNumberOfDeriveMacroExpansions

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

    getVisibility

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

    getWhereClause

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

    Inherited predicates

    getAttributeMacroExpansion

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

    from Item
    toStringfrom Element