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

Class Raw::MatchArmList

INTERNAL: Do not use. A list of arms in a match expression.

For example:

match x {
    1 => "one",
    2 => "two",
    _ => "other",
}
//  ^^^^^^^^^^^

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getArm

Gets the indexth arm of this match arm list (0-based).

getAttr

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

getNumberOfArms

Gets the number of arms of this match arm list.

getNumberOfAttrs

Gets the number of attrs of this match arm list.

toString