Module pat

Source

Structsยง

PatInfo ๐Ÿ”’
TopInfo ๐Ÿ”’
Information about the expected type at the top level of type checking a pattern.

Enumsยง

AdjustMode ๐Ÿ”’
Mode for adjusting the expected type and binding mode.
InheritedRefMatchRule ๐Ÿ”’
Variations on RFC 3627โ€™s Rule 4: when do reference patterns match against inherited references?
MutblCap ๐Ÿ”’
ref mut bindings (explicit or match-ergonomics) are not allowed behind an & reference. Normally, the borrow checker enforces this, but for (currently experimental) match ergonomics, we track this when typing patterns for two purposes:

Constantsยง

CANNOT_IMPLICITLY_DEREF_POINTER_TRAIT_OBJ ๐Ÿ”’

Functionsยง

is_number ๐Ÿ”’