Skip to content

Glossary: Rust Basics

loop

Also written: while, while loop

`loop` repeats its block forever until `break`, while `while` checks a condition before every pass and stops when it's false.

Where the book teaches it

Related terms

forbreakIteration