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

Class Raw::MatchExpr

INTERNAL: Do not use. A match expression. For example:

match x {
    Option::Some(y) => y,
    Option::None => 0,
}
match x {
    Some(y) if y != 0 => 1 / y,
    _ => 0,
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getAttr

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

getMatchArmList

Gets the match arm list of this match expression, if it exists.

getNumberOfAttrs

Gets the number of attrs of this match expression.

getScrutinee

Gets the scrutinee (the expression being matched) of this match expression, if it exists.

toString