Module clippy_utils::visitors
source · [−]Macros
Traits
A type which can be visited.
Functions
returns true if expr contains match expr desugared from try
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.
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.