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

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
主站蜘蛛池模板: 甘肃省| 泗洪县| 东海县| 溧阳市| 祥云县| 石狮市| 苏尼特右旗| 海阳市| 霍邱县| 信宜市| 北宁市| 德兴市| 安化县| 西宁市| 丹阳市| 阿拉善左旗| 通山县| 高要市| 资阳市| 巴塘县| 毕节市| 兴文县| 南江县| 普安县| 法库县| 焉耆| 疏勒县| 太白县| 沙田区| 犍为县| 襄樊市| 镇江市| 洛南县| 丰都县| 乌拉特后旗| 保德县| 和林格尔县| 柳林县| 聂拉木县| 阳高县| 咸阳市|