Skip to content
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

Fetcher api for multiple mutable value access. #47

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rhedgeco
Copy link

@rhedgeco rhedgeco commented May 9, 2023

This is intended as an initial discussion PR and not a completed/documented feature. While the feature will work as submitted. I believe more discussion is required, and an obvious clean up would be due.

I am often burdened by the lack of aliasing hints for the rust compiler and end up wanting multiple mutable access to data that should be completely safe. Since there is no way to tell a method what it aliases, it is automatically assumed that it aliases over the entire struct that it is attached to.

Because of the above, it is impossible to get multiple mutable values out of a map. This PR is an attempt to create a discussion around a potential solution to that problem.

Please let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant