pub fn expr_visitor_no_bodies<'tcx>(
    f: impl FnMut(&'tcx Expr<'tcx>) -> bool
) -> impl Visitor<'tcx>
Expand description

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.