- 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
推薦閱讀
- VMware View Security Essentials
- C++程序設(shè)計(jì)(第3版)
- Django Design Patterns and Best Practices
- Python機(jī)器學(xué)習(xí)編程與實(shí)戰(zhàn)
- FLL+WRO樂高機(jī)器人競賽教程:機(jī)械、巡線與PID
- PLC應(yīng)用技術(shù)(三菱FX2N系列)
- Kotlin開發(fā)教程(全2冊)
- 案例式C語言程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)
- Hands-On Full Stack Development with Spring Boot 2.0 and React
- Mastering Docker
- Windows Phone 8 Game Development
- Android移動應(yīng)用開發(fā)項(xiàng)目教程
- Instant Apache Camel Messaging System
- Android編程權(quán)威指南(第4版)
- SQL Server on Linux