Skip to content

Iterating enum variants #23

@anti-social

Description

@anti-social

It would be nice to be able to enumerate all enum variants.

Prost protobuf builder has an enum_attribute method which allows you to add a custom attribute to an enum. For example you can add #[derive(strum::EnumIter)] and then there will be an iter method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions