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

HashMap Remove Clone trait bound for HashMap::remove #200

Open
Anderssorby opened this issue Jun 2, 2022 · 0 comments
Open

HashMap Remove Clone trait bound for HashMap::remove #200

Anderssorby opened this issue Jun 2, 2022 · 0 comments

Comments

@Anderssorby
Copy link

Ideally I would want to use the remove function as a pop function that doesn't require clone just moving the data. This is supported by the std::collections::HashMap::remove. This arose from a use case where the data pointed to did not implement Clone.

let result = root.remove(&self.pool.0, hash_key(&*self.hasher, k), 0, k);

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

1 participant