#enum #iterator #variants

macro enum-iterator-derive

Procedural macro to iterate over the variants of a field-less enum

3 unstable releases

0.2.0 Jul 2, 2018
0.1.1 Jan 14, 2018
0.1.0 Jan 13, 2018

#74 in Rust patterns

Download history 196/week @ 2018-08-11 209/week @ 2018-08-18 142/week @ 2018-08-25 189/week @ 2018-09-01 149/week @ 2018-09-08 159/week @ 2018-09-15 132/week @ 2018-09-22 137/week @ 2018-09-29 165/week @ 2018-10-06 383/week @ 2018-10-13 409/week @ 2018-10-20 210/week @ 2018-10-27 387/week @ 2018-11-03

444 downloads per month
Used in 3 crates (2 directly)

MIT license

4KB
72 lines

Documentation Crate MIT license

Purpose

Trait and procedural macro to iterate over the variants of a field-less enum.


lib.rs:

Procedural macro to derive IntoEnumIterator for field-less enums.

See crate enum-iterator for details.

Dependencies

~1MB
~20K SLoC