
Methods - The Rust Programming Language
The method syntax goes after an instance: We add a dot followed by the method name, parentheses, and any arguments. In the signature for area, we use &self instead of rectangle: &Rectangle.
Introduction - Rust By Example
Rust is a modern systems programming language focusing on safety, speed, and concurrency. It accomplishes these goals by being memory safe without using garbage collection.
Common Programming Concepts - The Rust Programming Language
Many programming languages have much in common at their core. None of the concepts presented in this chapter are unique to Rust, but we’ll discuss them in the context of Rust and explain the …
The Rust Programming Language
The HTML format is available online at https://doc.rust-lang.org/stable/book/ and offline with installations of Rust made with rustup; run rustup doc --book to open.
Functions - The Rust Programming Language
Because Rust is an expression-based language, this is an important distinction to understand. Other languages don’t have the same distinctions, so let’s look at what statements and expressions are …
Rust Documentation
Rust’s standard library has extensive API documentation, with explanations of how to use various things, as well as example code for accomplishing various tasks.
B - Operators and Symbols - The Rust Programming Language
This appendix contains a glossary of Rust’s syntax, including operators and other symbols that appear by themselves or in the context of paths, generics, trait bounds, macros, attributes, comments, …
Futures and the Async Syntax - The Rust Programming Language
The key elements of asynchronous programming in Rust are futures and Rust’s async and await keywords. A future is a value that may not be ready now but will become ready at some point in the …
Patterns and Matching - The Rust Programming Language
We’ll cover the valid places to use patterns, the difference between refutable and irrefutable patterns, and the different kinds of pattern syntax that you might see.
Advanced Features - The Rust Programming Language
By now, you’ve learned the most commonly used parts of the Rust programming language. Before we do one more project, in Chapter 21, we’ll look at a few aspects of the language you might run into …