Skip to content

Possible enhancement? Adding HashMap::entry like methods #28

Description

@zelenij

Is it possible to enhance the generated code, so that it also produces methods like entry in HashMap? This is to work around the issue as in this SO post:

https://stackoverflow.com/questions/36603867/how-to-workaround-rusts-borrow-check-of-hashmap

So if the original struct has a hashed field id, then the macro would generate both get_by_id and entry_by_id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions