- 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
推薦閱讀
- Java Web開(kāi)發(fā)學(xué)習(xí)手冊(cè)
- Python計(jì)算機(jī)視覺(jué)編程
- Backbone.js Blueprints
- AutoCAD VBA參數(shù)化繪圖程序開(kāi)發(fā)與實(shí)戰(zhàn)編碼
- Learning Python Design Patterns
- Data Science Algorithms in a Week
- Practical GIS
- Appcelerator Titanium:Patterns and Best Practices
- Visual C++開(kāi)發(fā)寶典
- WCF技術(shù)剖析(卷1)
- Sitecore Cookbook for Developers
- Visual FoxPro程序設(shè)計(jì)習(xí)題及實(shí)驗(yàn)指導(dǎo)
- 微服務(wù)設(shè)計(jì)
- HTML5+CSS+JavaScript深入學(xué)習(xí)實(shí)錄
- Learning Java Lambdas