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

Module Generated

INTERNAL: This module contains the fully generated definition of StructPat and should not be referenced directly.

Import path

import codeql.rust.elements.internal.generated.StructPat

Classes

StructPat

A struct pattern. For example: rust match x { Foo { a: 1, b: 2 } => "ok", Foo { .. } => "fail", } INTERNAL: Do not reference the Generated::StructPat class directly. Use the subclass StructPat, where the following predicates are available.