As with all programming languages, we need a way to store information within our application. This information can be anything and, as with every other language, it's stored in a variable. However, unlike every other language, Rust does not store data in the same way as (say) C does.
To that end, in this chapter we will do the following:
- Understand variable mutability
- See how Rust stores information in a variable, and the types of variable available
- See how Rust deals with vector variable types
- Understand how Rust can and cannot manipulate variables
- See how Rust can pass variables
- Take a look at how Rust stores a variable internally