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

Class Raw::SlicePat

INTERNAL: Do not use. A slice pattern. For example:

match x {
    [1, 2, 3, 4, 5] => "ok",
    [1, 2, ..] => "fail",
    [x, y, .., z, 7] => "fail",
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getNumberOfPats

Gets the number of patterns of this slice pattern.

getPat

Gets the indexth pattern of this slice pattern (0-based).

toString