dashmap icon indicating copy to clipboard operation
dashmap copied to clipboard

By-reference version of `extend`

Open clarfonthey opened this issue 11 months ago • 0 comments

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.

clarfonthey avatar Aug 31 '23 18:08 clarfonthey