Skip to content

Custom doc comments for enum derived string conversion methods #450

@polarathene

Description

@polarathene

I've noticed a project where they've implemented their own macro for as_str()/from_str() methods of their enums, with the added ability to document those methods specific to the enum.

Seems like it might be a useful feature for the equivalent derivable methods in strum? I assume it might be implemented similar to how this PR did so for EnumDiscriminants.

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