Tour of Rust Table of Contents

while

while lets you easily add a condition to a loop.

If the condition evaluates to false, the loop will exit.