Rust Essentials(Second Edition)
上QQ阅读APP看书,第一时间看更新

Using Functions and Control Structures

This chapter concentrates on how we can control the execution flow of our code and how to modularize our code through functions. We also learn how to document and test our code.

We will cover the following topics:

  • Branching on a condition
  • Looping
  • Functions
  • Attributes
  • Testing