官术网_书友最值得收藏!

  • Learning Rust
  • Paul Johnson Vesa Kaihlavirta
  • 72字
  • 2021-07-02 23:07:23

Loops

Rust has essentially three types of loops:

  • loop is the simplest one—it just goes through a block of code again and again until one of the loop-breaking keywords is used
  • while is like loop, but with a condition—the block of code is looped again and again as long as the condition is true
  • for is different from the above two—it is for iterating through sequences
主站蜘蛛池模板: 巩留县| 浦北县| 津市市| 栾城县| 扎赉特旗| 伊金霍洛旗| 太谷县| 双流县| 三明市| 肇庆市| 友谊县| 乾安县| 岱山县| 灌南县| 铜陵市| 新河县| 丹凤县| 炉霍县| 巴东县| 布尔津县| 乡城县| 金平| 吉安市| 上虞市| 紫阳县| 齐齐哈尔市| 富平县| 乌兰浩特市| 高唐县| 尉犁县| 娄烦县| 石阡县| 米林县| 武川县| 泰和县| 公安县| 宣恩县| 鹤壁市| 太湖县| 洛阳市| 大姚县|