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

Class Raw::ExternBlock

INTERNAL: Do not use. An extern block containing foreign function declarations.

For example:

extern "C" {
    fn foo();
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAbi

Gets the abi of this extern block, if it exists.

getAttr

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

getExternItemList

Gets the extern item list of this extern block, if it exists.

getNumberOfAttrs

Gets the number of attrs of this extern block.

isUnsafe

Holds if this extern block is unsafe.

toString

Inherited predicates

getAttributeMacroExpansion

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

from Item