循环控制
Rust 中有三个循环关键字:while
、loop
和 for
:
while
The while
keyword works much like in other languages, executing the loop body as long as the condition is true.
Rust 中有三个循环关键字:while
、loop
和 for
:
while
The while
keyword works much like in other languages, executing the loop body as long as the condition is true.