Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EnumVariantNames #56

Merged
merged 6 commits into from Jul 15, 2019

Commits on Jun 1, 2019

  1. Add EnumVariantNames

    This derive adds a static `variants()` methods yielding the names of
    the enum variants. This happens to be exactly what clap [wants][1], and
    is the last puzzle piece to use strum with clap/structopt.
    
    [1]: https://docs.rs/clap/2.33.0/clap/macro.arg_enum.html
    killercup committed Jun 1, 2019
    Copy the full SHA
    5dc9754 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    9d0d7ec View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2019

  1. Return slice instead of array

    This reduces the risk of breaking the public API by accident when adding
    a new variant.
    killercup committed Jun 27, 2019
    Copy the full SHA
    7047213 View commit details
    Browse the repository at this point in the history
  2. Fix typo in Readme

    killercup committed Jun 27, 2019
    Copy the full SHA
    1f68ad2 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    69ea13b View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    0da0a1a View commit details
    Browse the repository at this point in the history