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

  • Rust Quick Start Guide
  • Daniel Arbuckle
  • 173字
  • 2021-06-10 19:46:02

Basics of the Rust Language

Okay, we're ready to actually begin writing some Rust code. In this chapter, we're going to look at how Rust programs are structured, and how an assortment of common programming elements are expressed in the language. We'll start with functions and modules, then move on to fundamental language features, such as branching, looping, and data structures. Almost everything we're covering in this chapter has an equivalent in most other programming languages; these are the fundamentals of programming.

Specifically, this chapter describes the following:

  • Functions, which are somewhat like miniature programs that are part of the larger program
  • Modules, which are used to organize the program
  • Expressions, which are how we tell the program to actually do specific things
  • Branching, which is how we tell the program to make a decision
  • Looping, which is how we tell the program to perform extended actions
  • Structures, which is how we organize information for the program to process
  • Attaching functions to structures or other data types, to make them more useful
主站蜘蛛池模板: 安泽县| 奉新县| 吐鲁番市| 梁山县| 广宁县| 商洛市| 萨迦县| 海盐县| 邛崃市| 普安县| 巩义市| 永川市| 乌恰县| 榆社县| 正蓝旗| 翼城县| 手游| 广德县| 即墨市| 墨竹工卡县| 马鞍山市| 阿坝| 沙田区| 丹东市| 塘沽区| 香格里拉县| 长治市| 和田市| 永川市| 隆化县| 长寿区| 石景山区| 旺苍县| 南昌市| 澎湖县| 黑水县| 龙里县| 闵行区| 蓬溪县| 穆棱市| 雷波县|