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

Class Raw::TupleStructPat

INTERNAL: Do not use. A tuple struct pattern. For example:

match x {
    Tuple("a", 1, 2, 3) => "great",
    Tuple(.., 3) => "fine",
    Tuple(..) => "fail",
};

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getField

Gets the indexth field of this tuple struct pattern (0-based).

getNumberOfFields

Gets the number of fields of this tuple struct pattern.

toString

Inherited predicates

getPath

Gets the path of this path ast node, if it exists.

from PathAstNode