The Iterator Is the State Machine
How Rust's Iterator trait supports lazy composition, and what a comparison with C++ ranges tells us about ownership checks and optimization.
Follow a thread
How Rust's Iterator trait supports lazy composition, and what a comparison with C++ ranges tells us about ownership checks and optimization.