Module rustc_mir_build::thir::pattern
source · Expand description
Validation of patterns/matches.
Modules
super::usefulnessexplains most of what is happening in this file. As explained there, values and patterns are made from constructors applied to fields. This file defines aConstructorenum, aFieldsstruct, and various operations to manipulate them and convert them from/to patterns.- Note: tests specific to this file can be found in:
Macros
Structs
- PatCtxt 🔒