mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-08 05:06:52 +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.