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

By-reference version of extend #281

Open
clarfonthey opened this issue Aug 31, 2023 · 0 comments
Open

By-reference version of extend #281

clarfonthey opened this issue Aug 31, 2023 · 0 comments

Comments

@clarfonthey
Copy link

Since Extend is a trait, it requires mutable references, although DashMap and DashSet by themselves allow extending with shared references.

It would be nice to have a shorthand function that's equivalent to Extend, but only requires a shared reference. Or, maybe &DashMap and &DashSet could implement Extend, allowing you to bypass this restriction.

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

No branches or pull requests

1 participant