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

  • 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
主站蜘蛛池模板: 理塘县| 合江县| 陕西省| 华宁县| 长海县| 麻栗坡县| 交口县| 晋州市| 招远市| 武穴市| 谢通门县| 宁明县| 勐海县| 大冶市| 凉城县| 冕宁县| 合川市| 视频| 屯昌县| 涟水县| 枣强县| 黄梅县| 永顺县| 鸡西市| 鹤山市| 泸西县| 柏乡县| 来安县| 门源| 江阴市| 分宜县| 丹棱县| 汤阴县| 鸡东县| 民勤县| 榆树市| 兰坪| 淳安县| 龙里县| 公安县| 广灵县|