You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular, search_entry_hashed2 calls IntoCow::into_owned if the key is not found, even if VacantEntry::insert is not called. Ideally, VacantEntry would be changed to delay copying until insert is called.
The text was updated successfully, but these errors were encountered:
@gankro Any ideas on how we can do this most flexibly? I'm struggling to come up with a set of bounds that maintains the above while also permitting these possibilities:
Edit: In particular, I think it's going to be an issue that String does not implement Borrow<&'a str> (which totally makes sense). We might need higher-ranked lifetimes for this?
The following claim is incorrect:
In particular,
search_entry_hashed2
callsIntoCow::into_owned
if the key is not found, even ifVacantEntry::insert
is not called. Ideally,VacantEntry
would be changed to delay copying untilinsert
is called.The text was updated successfully, but these errors were encountered: