Skip to content
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

Release 1.9.0 with backports from master #231

Merged
merged 19 commits into from
Jun 17, 2022

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Jun 16, 2022

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 and ValuesMut now implement Debug.

  • The new IndexMap::shrink_to and IndexSet::shrink_to methods shrink
    the capacity with a lower bound.

  • The new IndexMap::move_index and IndexSet::move_index methods change
    the position of an item from one index to another, shifting the items
    between to accommodate the move.

Resolves #217.

cuviper and others added 19 commits June 16, 2022 16:19
(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 4ddce3a)
(cherry picked from commit 94d1197)
(cherry picked from commit c715675)
(cherry picked from commit 9f2b14d)
(cherry picked from commit cda1a0b)
(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 3848768)
@cuviper cuviper merged commit 3222203 into indexmap-rs:indexmap-1.x Jun 17, 2022
@cuviper cuviper deleted the release-1.9.0 branch July 18, 2023 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants