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

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
主站蜘蛛池模板: 铜鼓县| 城固县| 黑山县| 盐亭县| 马山县| 阿城市| 九寨沟县| 和林格尔县| 出国| 阿克陶县| 三台县| 潜山县| 右玉县| 迁西县| 长宁县| 永靖县| 汉源县| 岳西县| 秦皇岛市| 天镇县| 洛浦县| 弥勒县| 绥中县| 宝山区| 吴川市| 鹤岗市| 河曲县| 通河县| 武邑县| 朔州市| 遂溪县| 五家渠市| 筠连县| 陇川县| 鄂伦春自治旗| 清远市| 远安县| 汉源县| 阿瓦提县| 会理县| 太和县|