Skip to main content

Module pattern_matching

Module pattern_matching 

Source
Expand description

MIR lowering for patterns

Macrosยง

not_supported ๐Ÿ”’

Enumsยง

AdtPatternShape ๐Ÿ”’
MatchingMode ๐Ÿ”’
We need to do pattern matching in two phases: One to check if the pattern matches, and one to fill the bindings of patterns. This is necessary to prevent double moves and similar problems. For example: