Rust has this innovative feature called "functions" which enables you to break from any block by just giving it a name and using "return". It can even return a value!
(/s obviously, but also not /s obviously. The serious point here may be that Java or whatever got in the way of defining functions by requiring them to be "methods" stuck in a "class" rather than, you know, just functions.)