diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-01-07 23:44:17 +0000 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-01-08 09:52:23 -0800 |
commit | 447870f5e8d70c5be3bba2d7e866bf26420b1260 (patch) | |
tree | e47ee150c4658e00f5d6dacc2a7b050cf3afee60 /libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs | |
parent | 75b752fcb1bb9b4403d7fe2c8874996eb572b460 (diff) | |
download | nitrocli-447870f5e8d70c5be3bba2d7e866bf26420b1260.tar.gz nitrocli-447870f5e8d70c5be3bba2d7e866bf26420b1260.tar.bz2 |
Add all_str function to enums generated by Enum! macro
To make it easier to list all possible values for a command-line option
mapped to an enum, we add the all_str function to the Enum! macro that
returns an array of the string representations of all variants.
We also use this new function to simplify the generation of the error
message in the FromStr implementation in Enum!.
Diffstat (limited to 'libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs')
0 files changed, 0 insertions, 0 deletions