Skip to Content
The Rust Programming Language (Covers Rust 2018)
book

The Rust Programming Language (Covers Rust 2018)

by Carol Nichols
July 2019
Intermediate to advanced
560 pages
14h 12m
English
No Starch Press
Content preview from The Rust Programming Language (Covers Rust 2018)

2PROGRAMMING A GUESSING GAME

Image

Let’s jump into Rust by working through a hands-on project together! This chapter introduces you to a few common Rust concepts by showing you how to use them in a real program. You’ll learn about let, match, methods, associated functions, using external crates, and more! The following chapters will explore these ideas in more detail. In this chapter, you’ll practice the fundamentals.

We’ll implement a classic beginner programming problem: a guessing game. Here’s how it works: the program will generate a random integer between 1 and 100. It will then prompt the player to enter a guess. After a guess is entered, the ...

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.
Start your free trial

You might also like

The Rust Programming Language

The Rust Programming Language

Steve Klabnik, Carol Nichols
Hands-on Rust

Hands-on Rust

Herbert Wolverson
Rust Web Programming

Rust Web Programming

Maxwell Flitton

Publisher Resources

ISBN: 9781098122539