enum_for_matches
enum_for_matches runs a match arm for each enum variant passed into it
regardless of type. So, you can make a string out of an enum which wraps
numeric types individually, such as serde_value::Value for example. See
README.md on GitHub for more information.
For example, this:
let e = I64;
let mut s = Stringnew;
run!;
eprintln!;
Would expand to:
match e
And print 80.
Contributing
This crate is considered feature complete. It uses a copious amount of
.clone()'s, many of which are probably removable. However, since this only
runs at compile time, on probably quite small vectors, I couldn't be bothered.