-
Notifications
You must be signed in to change notification settings - Fork 168
Release 1.9.0 with backports from master #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cherry picked from commit 61bb73e)
(cherry picked from commit ffd875b)
(cherry picked from commit 8eeea2c)
(cherry picked from commit bdd93a3)
(cherry picked from commit bdba2a6)
(cherry picked from commit dec3337)
(cherry picked from commit b41fc6b)
(cherry picked from commit 4ddce3a)
(cherry picked from commit 94d1197)
(cherry picked from commit c715675)
(cherry picked from commit 4750dc7)
(cherry picked from commit 9f2b14d)
(cherry picked from commit 8a571c6)
(cherry picked from commit 6b425e4)
This moves the position of a key-value pair from one index to another by shifting all other pairs in-between, making this an O(n) operation. This could be used as a building-block for other operations, like indexmap-rs#173 which wants to insert at a particular index. You can `insert_full` to insert it _somewhere_, then choose whether to `move_index` depending on whether you want to also change pre-existing entries. (cherry picked from commit 54a48d2)
(cherry picked from commit d110067)
(cherry picked from commit 3848768)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This cherry-picks a lot of changes from master (unreleased 2.0.0), except for breaking changes and
Slice
.MSRV: Rust 1.56.1 or later is now required.
The
hashbrown
dependency has been updated to version 0.12.IterMut
andValuesMut
now implementDebug
.The new
IndexMap::shrink_to
andIndexSet::shrink_to
methods shrinkthe capacity with a lower bound.
The new
IndexMap::move_index
andIndexSet::move_index
methods changethe position of an item from one index to another, shifting the items
between to accommodate the move.
Resolves #217.