Module clippy_utils::visitors

source ·

Modules

internal 🔒

Macros

Enums

Allows for controlled descent when using visitor functions. Use () instead when always descending into child nodes.

Traits

A type which can be visited.

Functions

returns true if expr contains match expr desugared from try
Checks if the given expression contains an unsafe block
Calls the given function once for each expression contained. This does not enter any bodies or nested items.
Calls the given function once for each expression contained. This will enter bodies, but not nested items.
Runs the given function for each path expression referencing the given local which occur after the given expression.
Runs the given function for each path expression referencing the given local which occur after the given expression.
Runs the given function for each sub-expression producing the final value consumed by the parent of the give expression.
Checks if the given expression is a constant.
Checks if the given expression performs an unsafe operation outside of an unsafe block.
Checks if the given local is used.
Checks if the given resolved path is used in the given body.