September 2024
Intermediate to advanced
256 pages
6h 40m
English
This chapter continues some of the themes from chapter 7 and builds on much of what we’ve learned in the book. We’ll start by discussing state machines and coroutines. Then we’ll introduce procedural macros, an advanced Rust feature that allows us to generate code at compile time. Last, we’ll discuss preludes, which are a commonly used Rust library pattern to improve usability.
Rust’s traits are powerful, and combined with generics, they let us build type-safe abstractions that allow us to guarantee ...