© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
C. MilanesiBeginning Rusthttps://doi.org/10.1007/978-1-4842-7208-4_3

3. Naming Objects

Carlo Milanesi1  
(1)
Bergamo, Italy
 
In this chapter, you will learn:
  • The concepts of “value,” “object,” and “variable”

  • The concept of “mutability” of variables

  • The difference between initialization and reassignment

  • How to avoid warnings for unused variables

  • The concept of “Boolean expression”

  • Which type of checks are performed by the compiler for assignments

  • How some operators can perform both an arithmetic operation and an assignment

  • How to invoke functions defined in the Rust standard library

Associating Names to Values

So far, we have seen three kinds of values: strings, integer ...

Get Beginning Rust: Get Started with Rust 2021 Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.