About 600 results
Open links in new tab
  1. 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: …

  2. 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.

  3. Common Programming Concepts - The Rust Programming …

    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 …

  4. 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, …

  5. 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 …

  6. Defining and Instantiating Structs - The Rust Programming …

    First, in Listing 5-6 we show how to create a new User instance in user2 in the regular way, without the update syntax. We set a new value for email but otherwise use the same values …

  7. Introduction - The Rust Reference

    Each chapter generally can be read standalone, but will cross-link to other chapters for facets of the language they refer to, but do not discuss. There are two main ways to read this document.

  8. Futures and the Async Syntax - The Rust Programming Language

    If you’re familiar with those languages, you may notice some significant differences in how Rust handles the syntax. That’s for good reason, as we’ll see!

  9. 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.

  10. Macros - The Rust Programming Language

    It takes a Rust expression, such as 1 + 2, and at compile time turns the expression into a string literal, such as "1 + 2". This is different from format! or println!, which are macros that evaluate …