What role does ' play in Rust?

(tx_interupt, move || {
            'outer: for (i_p, p) in plots.iter().enumerate() {

what does 'outer do here?

It labels the for loop with the name outer and is used in conjunction with a break or continue statement to leave the loop early or skip part of it: https://doc.rust-lang.org/stable/rust-by-example/flow_control/loop/nested.html

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.