Learn Rust in a Month of Lunches
eBook - ePub

Learn Rust in a Month of Lunches

  1. 568 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learn Rust in a Month of Lunches

About this book

One month. One hour a day. That's all it takes to start writing Rust code! Learn Rust in a Month of Lunches teaches you to write super fast and super safe Rust code through lessons you can fit in your lunch break. Crystal-clear explanations and focused, relevant examples make it accessible to anyone—even if you're learning Rust as your first programming language. By the time you're done reading Learn Rust in a Month of Lunches you'll be able to:

  • Build real software in Rust
  • Understand messages from the compiler and Clippy, Rust's coding coach
  • Make informed decisions on the right types to use in any context
  • Make sense of the Rust standard library and its commonly used items
  • Use external Rust "crates" (libraries) for common tasks
  • Comment and build documentation for your Rust code
  • Work with crates that use async Rust
  • Write simple declarative macros
  • Explore test driven development in Rust


Learn Rust in a Month of Lunches is full of 24 easy-to-digest lessons that ease you into real Rust programming. You'll learn essential Rust skills you can use for everything from system programming, to web applications, and games. By the time you're done learning, you'll know exactly what makes Rust unique—and be one of the thousands of developers who say it's their best loved language! About the technology Learn how to create fast powerful programs in Rust in just 24 short lessons! Rust gives you modern features like a top-notch compiler, a rich ecosystem of pre-built libraries, and the same low-level performance you get with a language like C, but without the awkward syntax, complex memory management, and code safety concerns. This book guides you step by step from your first line of code. About the book Learn Rust in a Month of Lunches breaks down the Rust language into concise hands-on lessons designed to be completed in an hour or less. The examples are fun and easy to follow, so you'll quickly progress from zero Rust knowledge to handling async and writing your own macros. You won't even need to install Rust—the book's code samples run in the browser-based Rust Playground. There's no easier way to get started! What's inside

  • Build working Rust software
  • Understand messages from the compiler and Clippy
  • Use external Rust "crates" (libraries) for common tasks
  • Explore test driven development in Rust


About the reader No previous experience with Rust required. About the author Dave MacLeod was an educator, Korean-English translator, project controller, and copywriter before becoming a full-time Rust developer. The technical editor on this book was Jerry Kuch. Table of Contents
1 Some basics
2 Memory, variables, and ownership
3 More complex types
4 Building your own types
5 Generics, option, and result
6 More collections, more error handling
7 Traits: Making different types do the same thing
8 Iterators and closures
9 Iterators and closures again!
10 Lifetimes and interior mutability
11 Multiple threads and a lot more
12 More on closures, generics, and threads
13 Box and Rust documentation
14 Testing and building your code from tests
15 Default, the builder pattern, and Deref
16 Const, "unsafe" Rust, and external crates
17 Rust's most popular crates
18 Rust on your computer
19 More crates and async Rust
20 A tour of the standard library
21 Continuing the tour
22 Writing your own macros
23 Unfinished projects: Projects for you to finish
24 Unfinished projects, continued

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Learn Rust in a Month of Lunches by David MacLeod in PDF and/or ePUB format, as well as other popular books in Computer Science & Software Development. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. inside front cover
  2. Learn Rust in a Month of Lunches
  3. Copyright
  4. dedication
  5. contents
  6. front matter
  7. 1 Some basics
  8. 2 Memory, variables, and ownership
  9. 3 More complex types
  10. 4 Building your own types
  11. 5 Generics, option, and result
  12. 6 More collections, more error handling
  13. 7 Traits: Making different types do the same thing
  14. 8 Iterators and closures
  15. 9 Iterators and closures again!
  16. 10 Lifetimes and interior mutability
  17. 11 Multiple threads and a lot more
  18. 12 More on closures, generics, and threads
  19. 13 Box and Rust documentation
  20. 14 Testing and building your code from tests
  21. 15 Default, the builder pattern, and Deref
  22. 16 Const, ā€œunsafeā€ Rust, and external crates
  23. 17 Rust’s most popular crates
  24. 18 Rust on your computer
  25. 19 More crates and async Rust
  26. 20 A tour of the standard library
  27. 21 Continuing the tour
  28. 22 Writing your own macros
  29. 23 Unfinished projects: Projects for you to finish
  30. 24 Unfinished projects, continued
  31. index