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

Class Raw::StructPat

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

match x {
    Foo { a: 1, b: 2 } => "ok",
    Foo { .. } => "fail",
}

Import path

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

Direct supertypes

Indirect supertypes

Predicates

getStructPatFieldList

Gets the struct pattern field list of this struct pattern, if it exists.

toString

Inherited predicates

getPath

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

from PathAstNode