Wrap-Up

Hands-on Rust — by Herbert Wolverson (31 / 120)

The Pragmatic Programmers
The Pragmatic Programmers
2 min readSep 23, 2021

--

👈 Categorizing with Enumerations | TOC | Chapter 3 Build Your First Game with Rust 👉

You achieved a lot in this chapter and put to use many of Rust’s basic concepts, enough to write useful and fun programs. In particular, you learned:

  • Printing and formatting text
  • Working with strings
  • Using for and loop for program flow
  • Using if for conditional execution
  • Arrays
  • Structures
  • Vectors
  • Enumerations
  • Match statements

In the next chapter, you’ll put this knowledge to work and make your first Rust game.

Footnotes

[20] https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html.

[21] https://doc.rust-lang.org/1.7.0/book/strings.html.

[22] https://doc.rust-lang.org/std/io/struct.Stdin.html.

[23] https://doc.rust-lang.org/std/fmt/

[24] https://doc.rust-lang.org/1.2.0/book/for-loops.html

[25] https://doc.rust-lang.org/book/ch05-01-defining-structs.html

[26] https://doc.rust-lang.org/std/iter/trait.Iterator.html

[27] https://doc.rust-lang.org/1.18.0/book/first-edition/closures.html

[28] https://medium.com/@hinchman_amanda/null-pointer-references-the-billion-dollar-mistake-1e616534d485

[29] https://doc.rust-lang.org/1.18.0/book/first-edition/vectors.html

[30] https://doc.rust-lang.org/std/macro.vec.html

[31] https://doc.rust-lang.org/1.29.0/book/first-edition/loops.html

[32] https://doc.rust-lang.org/std/keyword.enum.html

[33] https://doc.rust-lang.org/reference/expressions/match-expr.html

Copyright © 2021, The Pragmatic Bookshelf.

👈 Categorizing with Enumerations | TOC | Chapter 3 Build Your First Game with Rust 👉

Hands-on Rust by Herbert Wolverson can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

Unlisted

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.