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

Class Raw::MatchGuard

INTERNAL: Do not use. A guard condition in a match arm.

For example:

match x {
    y if y > 0 => "positive",
//    ^^^^^^^
    _ => "non-positive",
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getCondition

Gets the condition of this match guard, if it exists.

toString