mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 22:36:43 +00:00
Instead of defining a named struct, we can use `std::iter::from_fn` and store intermediate state in a closure.
Instead of defining a named struct, we can use `std::iter::from_fn` and store intermediate state in a closure.