Skip to main content

Module match_pair

Module match_pair 

Source

Structs§

InterPat 🔒
“Intermediate pattern”, a partly-lowered THIR Pat that has not yet been squashed into a forest of refutable MatchPairTree nodes.

Functions§

prefix_slice_suffix 🔒
For an array or slice pattern’s subpatterns (prefix/slice/suffix), returns a list of those subpatterns, each paired with a suitably-projected PlaceBuilder.
squash_inter_pat 🔒
Recursively squashes an InterPat into a forest of refutable MatchPairTree nodes, while accumulating ascriptions and bindings.