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

Avoid cloning for merely the .get #218

Open
ar4s-eth opened this issue Jun 8, 2022 · 1 comment
Open

Avoid cloning for merely the .get #218

ar4s-eth opened this issue Jun 8, 2022 · 1 comment

Comments

@ar4s-eth
Copy link
Member

ar4s-eth commented Jun 8, 2022

No description provided.

@mightyiam mightyiam changed the title possibly borrowing the key Avoid cloning for merely the .get Jul 10, 2022
@mightyiam
Copy link
Member

Idea: the .get will take a key as reference and return some type (depending on implementation) that will be used as key in the .insert call.

This avoids borrowing a key from the input, which doesn't work in the case where the function consumes the input.

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

No branches or pull requests

2 participants