-
-
Notifications
You must be signed in to change notification settings - Fork 396
Introduce get_all and get_all_mut on tuple_list using handles #3427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce get_all and get_all_mut on tuple_list using handles #3427
Conversation
I don't think that CI error has anything to do with this PR, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good, left some comments on design things and some nits.
I asked in the Rust discord and the consensus was: there is no ergonomic way to write this in Rust for now. We can look at frunk for inspiration, but reasoning about these tuple lists generically might just always suck for now. |
2706715
to
44fb275
Compare
44fb275
to
bcbb933
Compare
Description
With handles, it was previously possible to retrieve a single element from a tuple_list. This PR introduces functions to retrieve tuples of elements based on tuples of handles.
Checklist
./scripts/precommit.sh
and addressed all comments