This post shows how to create and use loops in Rust. There are three ways to create loops in Rust – using the loop, while, and for keywords. The Endless Rust Loop Using the loop Keyword To create an endless loop
Java – break outer loop from inner loop
Whenever you use break; (or continue;), by default it only affects the current loop where it is invoked . If you are in a inner loop, surely the only loop that you can break; from is that loop. What if you need to break; from the outer-most loop in order to proceed to the next set of instructions?