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: