November 2017
Intermediate to advanced
264 pages
5h 45m
English
In this chapter, we look at the basic building blocks of a Rust program, like variables and types. We discuss variables of primitive types, whether their type has to be declared or not, and the scope of variables. Immutability, one of the cornerstones of Rust's safety strategy, is also discussed and illustrated.
We will cover the following topics:
Our code examples will center on building a text-based game called Monster Attack.
Read now
Unlock full access