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

Class Raw::Impl

INTERNAL: Do not use. An `impl`` block.

For example:

impl MyTrait for MyType {
    fn foo(&self) {}
}

Import path

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

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    getAssocItemList

    Gets the assoc item list of this impl, if it exists.

    getAttr

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

    getGenericParamList

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

    getNumberOfAttrs

    Gets the number of attrs of this impl.

    getSelfTy

    Gets the self ty of this impl, if it exists.

    getTrait

    Gets the trait of this impl, if it exists.

    getVisibility

    Gets the visibility of this impl, if it exists.

    getWhereClause

    Gets the where clause of this impl, if it exists.

    isConst

    Holds if this impl is const.

    isDefault

    Holds if this impl is default.

    isUnsafe

    Holds if this impl is unsafe.

    toString

    Inherited predicates

    getAttributeMacroExpansion

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

    from Item