Modules§
- internal 🔒
Macros§
Enums§
- Descend
- Allows for controlled descent when using visitor functions. Use
()
instead when always descending into child nodes.
Traits§
- Visitable
- A type which can be visited.
Functions§
- any_
temporaries_ need_ ordered_ drop - contains_
break_ or_ continue - contains_
try 🔒 - returns
true
if expr contains match expr desugared from try - contains_
unsafe_ block - Checks if the given expression contains an unsafe block
- find_
all_ ret_ expressions - for_
each_ expr - Calls the given function once for each expression contained. This will enter bodies, but not nested items.
- for_
each_ expr_ without_ closures - Calls the given function once for each expression contained. This does not enter any bodies or nested items.
- for_
each_ local_ assignment - Runs the given function for each path expression referencing the given local which occur after the given expression.
- for_
each_ local_ use_ after_ expr - Runs the given function for each path expression referencing the given local which occur after the given expression.
- for_
each_ unconsumed_ temporary - for_
each_ value_ source - Runs the given function for each sub-expression producing the final value consumed by the parent of the give expression.
- is_
const_ evaluatable - Checks if the given expression is a constant.
- is_
expr_ unsafe - Checks if the given expression performs an unsafe operation outside of an unsafe block.
- is_
local_ used - Checks if the given local is used.
- is_
res_ used - Checks if the given resolved path is used in the given body.
- local_
used_ once - If the local is only used once in
visitable
returns the path expression referencing the given local