Module clippy_utils::visitors
source · [−]Macros
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.
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.