
Method Syntax - The Rust Programming Language - Learn Rust
Given the receiver and name of a method, Rust can figure out definitively whether the method is reading (&self), mutating (&mut self), or consuming (self). The fact that Rust makes borrowing …
Introduction - Rust By Example - Learn Rust
Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries. To get even more out of these examples, don't forget to install Rust …
Pattern Syntax - The Rust Programming Language - Learn Rust
Pattern Syntax. In this section, we gather all the syntax valid in patterns and discuss why and when you might want to use each one. Matching Literals. As you saw in Chapter 6, you can …
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, …
The Rust Programming Language - The Rust Programming …
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. Several community …
Common Programming Concepts - The Rust Programming …
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 conventions around using these concepts. Specifically, you’ll …
Data Types - The Rust Programming Language - Learn Rust
Every value in Rust is of a certain data type, which tells Rust what kind of data is being specified so it knows how to work with that data. We’ll look at two data type subsets: scalar and …
Functions - The Rust Programming Language - Learn Rust
Functions are prevalent in Rust code. You’ve already seen one of the most important functions in the language: the main function, which is the entry point of many programs. You’ve also seen …
Introduction - The Rust Reference - Learn Rust
This book is the primary reference for the Rust programming language. It provides three kinds of material: Chapters that informally describe each language construct and their use. Chapters …
Macros - The Rust Programming Language - Learn Rust
The term macro refers to a family of features in Rust: declarative macros with macro_rules! and three kinds of procedural macros: Custom #[derive] macros that specify code added with the …