#enum #iterator #variants

macro enum-iterator-derive

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

6 releases

✓ Uses Rust 2018 edition

0.3.0 Jan 25, 2019
0.2.3 Oct 19, 2018
0.2.0 Jul 2, 2018
0.1.1 Jan 14, 2018

#137 in Rust patterns

Download history 533/week @ 2018-12-20 266/week @ 2018-12-27 404/week @ 2019-01-03 388/week @ 2019-01-10 329/week @ 2019-01-17 383/week @ 2019-01-24 364/week @ 2019-01-31 240/week @ 2019-02-07 243/week @ 2019-02-14 335/week @ 2019-02-21 313/week @ 2019-02-28 326/week @ 2019-03-07 441/week @ 2019-03-14 525/week @ 2019-03-21 250/week @ 2019-03-28

1,814 downloads per month
Used in 4 crates (3 directly)

MIT license

4KB
69 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

~779KB
~17K SLoC