enum-utils icon indicating copy to clipboard operation
enum-utils copied to clipboard

A set of useful proc macros for enums

Results 5 enum-utils issues
Sort by recently updated
recently updated
newest added

I want to use this in conjunction with structopt, whose derive macro expands to this: ```rust .validator(|s| { ::std::str::FromStr::from_str(s.as_str()) .map(|_: Eval| ()) .map_err(|e| e.to_string()) }) ``` Obviously this won't work...

It appears that the `IterVariants` derive will only produce a private `fn iter()` which makes it only useful in the module where the enum is defined. I'd like to see...

This exists in `strum` and `derive-more` but the former is complicated and the latter doesn't have `FromStr` or `TryFrom` derives for enums. I rather like the simplicity and narrowed scope...

Hi! Failure is deprecated and has security vulnerabilities. This PR replaces failure with anyhow, which is for the most part a drop in replacement. Thanks