Skip to main content

visit_stmts

Function visit_stmts 

Source
pub fn visit_stmts<'gcx>(
    hir: &'gcx Hir<'gcx>,
    stmts: impl IntoIterator<Item = &'gcx Stmt<'gcx>>,
    f: impl FnMut(&'gcx Stmt<'gcx>) -> ControlFlow<()>,
) -> ControlFlow<()>
Expand description

Runs f on every statement of stmts and their nested statements (pre-order) until it breaks.