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

StateMap lacks an efficient way to check whether a key is already present #243

Open
abizjak opened this issue Apr 10, 2023 · 0 comments
Open
Labels
[Type] Task An additional feature or improvement.

Comments

@abizjak
Copy link
Contributor

abizjak commented Apr 10, 2023

There are methods get, get_mut, entry which can all be used to check existence of a key.

However they all use V::deserial_with_state as part, which is not necessary if we only need to check existence of a key.

This method should be added (like contains for StateSet).

@abizjak abizjak added the [Type] Task An additional feature or improvement. label Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Task An additional feature or improvement.
Projects
None yet
Development

No branches or pull requests

1 participant