Expand description
A different sort of visitor for walking fn bodies. Unlike the
normal visitor, which just walks the entire body in one shot, the
ExprUseVisitor determines how expressions are being used.
This is only used for upvar inference.
Structsยง
- Expr
UseVisitor ๐ - A visitor that reports how each expression is being used.
- Place
- A
Placerepresents how a value is located in memory. This does not always correspond to a syntactic place expression. For example, when processing a pattern, aPlacecan be used to refer to the sub-value currently being inspected. - Place
With ๐Origin - A
PlaceWithOriginrepresents how a value is located in memory. This does not always correspond to a syntactic place expression. For example, when processing a pattern, aPlacecan be used to refer to the sub-value currently being inspected. - Projection
Enumsยง
- CatPattern
Pat ๐ - Fake
Read Cause - The
FakeReadCausedescribes the type of pattern why a FakeRead statement exists. - Place
Base - Projection
Kind
Traitsยง
- Delegate ๐
- This trait defines the callbacks you can expect to receive when employing the ExprUseVisitor.
Type Aliasesยง
- Result ๐