Skip to content

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Aug 22, 2025

No description provided.

cuviper and others added 18 commits August 22, 2025 14:03
Maps and sets may fail if the new key/value is already present
elsewhere, but we know that's not the case for `VacantEntry`.

* `IndexMap::replace_index(&mut self, index: usize, key: K) -> Result<K, (usize, K)>`
* `IndexSet::replace_index(&mut self, index: usize, value: T) -> Result<T, (usize, T)>`
* `VacantEntry::replace_index(self, index: usize) -> (K, OccupiedEntry<'a, K, V>)`

(cherry picked from commit a9a7490)
(cherry picked from commit 314ec7d)
Supports serialization without nesting

(cherry picked from commit e04f6bf)
Co-authored-by: Josh Stone <[email protected]>
(cherry picked from commit 30f27ba)
Mirrors the testing of serde.

(cherry picked from commit f9582d1)
(cherry picked from commit a468ca4)
(cherry picked from commit e4bb7d0)
@cuviper cuviper enabled auto-merge August 22, 2025 22:15
@cuviper cuviper added this pull request to the merge queue Aug 22, 2025
Merged via the queue into indexmap-rs:main with commit 2a9ecd4 Aug 22, 2025
16 checks passed
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.

3 participants