Skip to content

Enum Map derive macro #272

@PokeJofeJr4th

Description

@PokeJofeJr4th

I think it would be useful to have a map that you can index with an enum. I had the idea while working on a game inventory system where items are enums. I've started my own fork to start the macro. I'm struggling with the dependency on EnumIter and possible support for variants with attached data.

I still have a long way to go before it's PR-quality. I'm posting here to gauge whether my idea seems worthwhile and to ask for help. I'm very new to open source so I'm not sure if I'm doing all this right.

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