Skip to content

libcore: Add iter::from_generator which is like iter::from_fn, but for coroutines instead of functions#96298

Merged
bors merged 1 commit intorust-lang:masterfrom
petrochenkov:fromgen
May 27, 2022
Merged

libcore: Add iter::from_generator which is like iter::from_fn, but for coroutines instead of functions#96298
bors merged 1 commit intorust-lang:masterfrom
petrochenkov:fromgen

Conversation

@petrochenkov
Copy link
Copy Markdown
Contributor

@petrochenkov petrochenkov commented Apr 21, 2022

An equally useful little helper.

I didn't follow any of the async-wg work, so I don't know why something like this wasn't added before.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.