Skip to content

impl Clone for IntoKeys and IntoValues - #426

Merged
cuviper merged 1 commit into
indexmap-rs:mainfrom
cuviper:clone-intokv
Dec 3, 2025
Merged

cuviper merged 1 commit into
indexmap-rs:mainfrom
cuviper:clone-intokv

Conversation

@cuviper

@cuviper cuviper commented Nov 29, 2025

Copy link
Copy Markdown
Member

The unused values are dropped and replaced with MaybeUninit<V> when constructing IntoKeys, so we can avoid any constraints on V while cloning -- and vice versa for unused keys in IntoValues.

Closes #346

The unused values are dropped and replaced with `MaybeUninit<V>` when
constructing `IntoKeys`, so we can avoid any constraints on `V` while
cloning -- and vice versa for unused keys in `IntoValues`.
@cuviper
cuviper added this pull request to the merge queue Dec 3, 2025
Merged via the queue into indexmap-rs:main with commit 8b8d350 Dec 3, 2025
16 checks passed
@cuviper
cuviper deleted the clone-intokv branch January 7, 2026 16:41
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.

impl Clone for IntoKeys and IntoValues

1 participant