我在查看一些Rust代码时看到了类似于以下内容的东西:
'running: loop {
// insert code here
if(/* some condition */) {
break 'running;
}
}
什么是在循环中“标记”生命周期?仅使用以下内容有什么好处和区别:
```rust for item in list { // code here } ```
loop {
// insert code here
if(/* some condition */) {
break;
}
}