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
- `pub fn get_key_value<Q: ?Sized>(&self, key: &Q) -> Option<(&K, &V)>`
- Stabilized in Rust 1.40.
- This is a middle-ground between `get` and our own `get_full` that
includes the index. It's easy enough to add for compatibility.
- `pub fn remove_entry<Q: ?Sized>(&mut self, key: &Q) -> Option<(K, V)>`
- Stabilized in Rust 1.27.
- For `IndexMap`, this also adds `swap_`/`shift_remove_entry` choices.
- These are also a middle-ground between (`swap_`/`shift_`)`remove` and
our own `swap`/`shift_remove_full` that include the index. We don't
have a plain `remove_full` though.
0 commit comments