Overview

Tools to iterate over the values of a type.

See the [IntoEnumIterator] trait.

Example

```rust use enum_iterator::IntoEnumIterator;

[derive(Debug, IntoEnumIterator, PartialEq)]

enum Day { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday }

asserteq!(Day::intoenumiter().next(), Some(Day::Monday)); asserteq!(Day::intoenumiter().last(), Some(Day::Sunday)); ```

Contribute

All contributions shall be licensed under the 0BSD license.