Chapter 2First Steps with Rust
In the previous chapter, you installed Rust, set up a comfortable development environment, and examined the “Hello, World” program. This chapter pushes you further into Rust development as you build a program designed to assist your security team at a swanky new treehouse. In building this program, you’ll learn to accept input from the keyboard, store data in variables, store collections of variables in arrays and vectors, and begin to learn the power of Rust iterators and enumerations.
It’s going to be a whirlwind tour as this chapter introduces a lot of concepts, but hang in there—you’re in for a real treat. (And don’t worry if you don’t remember everything you read here; the more you use Rust, the more you’ll ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access