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

Class Raw::MatchArm

INTERNAL: Do not use. A match arm. 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 arm (0-based).

getExpr

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

getGuard

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

getNumberOfAttrs

Gets the number of attrs of this match arm.

getPat

Gets the pattern of this match arm, if it exists.

toString