Community driven, articles, resources, guides, interview questions, quizzes for Rust development. Learn to become a modern Rust developer by following the steps, skills, resources and guides listed in this roadmap.
Error Handling In Rust - A Deep Dive | Luca Palmieri
Error handling in Rust can be confusing - should you use a library? Which one? For what purpose? This chapter provides a structured framework to reason about errors as well as a guide on how to leverage the existing ecosystem (`thiserror`, `anyhow`).
The async/await feature in Rust is implemented using a mechanism known as cooperative scheduling, and this has some important consequences for people who write asynchronous Rust code.
In Rust, enums are composite data types that can have multiple variants. In this article, we show you how to define, instantiate, and use them. We also cover pattern matching and two common enums for error handling: Option and Result.
With Rust generics, programmers can write general algorithms that work with arbitrary types, reducing code duplication and providing type safety. In this article, we show when and how to use them.
In Rust, structs are composite data types that contain multiple related types. In this article, we show you how to define and instantiate structs, derive traits for them, and create struct methods.