...

/

Expressions, Values, and Types

Expressions, Values, and Types

We'll cover the following...

Here is a statement that will govern a lot of our time in Rust. Let’s explore what this means:

An expression is evaluated to a value of a specific type

A lot of the work we do in programming is producing and using values. Values can be something like the number 9, true, the words “Hello world”, and more. Your computer will end up storing these values somewhere in memory, and then you’ll use them in things like calling functions or macros.

Each and every value you produce will have a type. ...