Skip to content

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

@abizjak

Description

@abizjak

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] TaskAn additional feature or improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions