Skip to main content

Module pat_analysis

Module pat_analysis 

Source
Expand description

Interface with rustc_pattern_analysis.

StructsΒ§

EnumVariantContiguousIndex πŸ”’
An index type for enum variants. This ranges from 0 to variants.len(), whereas EnumVariantId can take arbitrary large values (and hence mustn’t be used with IndexVec/BitSet).
MatchCheckCtx πŸ”’

EnumsΒ§

Void πŸ”’
[Constructor] uses this in unimplemented variants. It allows porting match expressions from upstream algorithm without losing semantics.

Type AliasesΒ§

DeconstructedPat πŸ”’
MatchArm πŸ”’
WitnessPat πŸ”’