Chapter 2: Rust Prerequisites
Basics you'll need to build anything in Rust...
- Primitive data types, Structs, Enums, Collections
- Control flow (if/else, match, for, loop etc.)
You'll want to know how to use (but not necessarily create)...
- Structs/functions with generic type arguments
- Traits, including overriding default methods, and a basic understanding of standard traits e.g. Debug, Clone, Serialise
- Async/await syntax, at a very basic level, and the Send and Sync traits
- The 'static lifetime
Some recommended resources to help with learning these concepts include:
| Documentation and Articles | Videos |
|---|---|
| The Rust Book | Rust makes you feel like a GENIUS (10:47) |
| Rust for the impatient (10:42) | |
| Rust: Generics, Traits, Lifetimes (35:33) | |
| Intro to async/.await in Rust (13:56) |