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

Class Raw::Meta

INTERNAL: Do not use. A meta item in an attribute.

For example:

#[unsafe(lint::name = "reason_for_bypass")]
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#[deprecated(since = "1.2.0", note = "Use bar instead", unsafe=true)]
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fn foo() {
    // ...
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getExpr

Gets the expression of this meta, if it exists.

getPath

Gets the path of this meta, if it exists.

getTokenTree

Gets the token tree of this meta, if it exists.

isUnsafe

Holds if this meta is unsafe.

toString