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

Entry insert #226

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Entry insert #226

merged 2 commits into from
Jul 11, 2023

Conversation

SrTobi
Copy link
Contributor

@SrTobi SrTobi commented Sep 11, 2022

  1. Added VacantEntry::insert_entry as in the std.
  2. Added Entry::insert_entry as in the std.

Unfortunately I was not able to achieve this without requiring the key K to be Clone, but I think it's better than nothing.
For cases where the key is not Clone or shouldn't be cloned, I ...

  1. ... added Entry::insert, which makes sense to me, but is not a function in the std.

@xacrimon xacrimon merged commit 3b41846 into xacrimon:master Jul 11, 2023
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.

2 participants