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

Class Raw::Static

INTERNAL: Do not use. A static item declaration.

For example:

static X: i32 = 42;

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getBody

Gets the body of this static, if it exists.

getName

Gets the name of this static, if it exists.

getNumberOfAttrs

Gets the number of attrs of this static.

getTypeRepr

Gets the type representation of this static, if it exists.

getVisibility

Gets the visibility of this static, if it exists.

isMut

Holds if this static is mut.

isStatic

Holds if this static is static.

isUnsafe

Holds if this static is unsafe.

toString

Inherited predicates

getAttributeMacroExpansion

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

from Item