[−][src]Module rustc_mir_build::thir::pattern::deconstruct_pat
This module provides functions to deconstruct and reconstruct patterns into a constructor
applied to some fields. This is used by the _match module to compute pattern
usefulness/exhaustiveness.
Structs
| IntRange | An inclusive interval, used for precise integer exhaustiveness checking.
|
| MissingConstructors | |
| Slice | A constructor for array and slice patterns. |
Enums
| Constructor | A value can be decomposed into a constructor applied to some fields. This struct represents
the constructor. See also |
| Fields | A value can be decomposed into a constructor applied to some fields. This struct represents
those fields, generalized to allow patterns in each field. See also |
| FilteredField | Some fields need to be explicitly hidden away in certain cases; see the comment above the
|
| SliceKind |
Functions
| all_constructors | This determines the set of all possible constructors of a pattern matching
values of type |