enum-values
EnumValues works with a specific subset of enums: these that have primitive discriminants.
The guiding use case was automatic generation of exit codes documentation from Error enums.
use EnumValues;
/// Mapping for relevant [`Error`] variants to an [`std::process::ExitCode`].
let variants = variants.;
eprintln!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
License
This project is licensed under either of:
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.