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
I couldn't do insert_key_value, getting a key with the map lifetime from hash_map::Entry can't be done in one go / without cloning, see rust-lang/rust#65225 (comment) “On the topic of key ownership…” for a discussion on what needs to be done before something like that could be stabilized.
OccupiedEntry needs to keep a non-Optional reference to the key within the map.
FrozenMap hands out references to its values, but since the map also owns the keys it is possible to provide references to the keys as well.
Assuming K: StableDeref, implement:
The text was updated successfully, but these errors were encountered: