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.
Since
Extendis a trait, it requires mutable references, althoughDashMapandDashSetby 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&DashMapand&DashSetcould implementExtend, allowing you to bypass this restriction.