Lesson 3 - Data Types

Every value in Rust has a type.

A type tells Rust what kind of information a value represents.

Rust can often figure out a variable's type automatically.

let age = 16;

Rust knows that age is an integer.

You can also explicitly specify the type:

let age: i32 = 16;