clippy_utils::visitors

Function for_each_expr_without_closures

source
pub fn for_each_expr_without_closures<'tcx, B, C: Continue>(
    node: impl Visitable<'tcx>,
    f: impl FnMut(&'tcx Expr<'tcx>) -> ControlFlow<B, C>,
) -> Option<B>
Expand description

Calls the given function once for each expression contained. This does not enter any bodies or nested items.