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

Class Raw::ConstBlockPat

INTERNAL: Do not use. A const block pattern. For example:

match x {
    const { 1 + 2 + 3 } => "ok",
    _ => "fail",
};

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getBlockExpr

Gets the block expression of this const block pattern, if it exists.

isConst

Holds if this const block pattern is const.

toString