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
Convenience method for creating a Visitor with just visit_expr overridden and nested bodies (i.e. closures) are visited. If the callback returns true, the expr just provided to the callback is walked.
Convenience method for creating a Visitor with just visit_expr overridden and nested bodies (i.e. closures) are not visited. If the callback returns true, the expr just provided to the callback is walked.
Calls the given function once for each expression contained. This does not enter any bodies or 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.