Crate enumerable
source ·Expand description
Enumerate all possible values of a type.
Implementing the Enumerable
trait or derive it automatically for your types allows you to enumerate all possible values of that type. This is useful for testing, fuzzing, and other applications.
See documentation for trait Enumerable
for technical details.
Structs§
OptionEnumerator
is an iterator over possible values ofOption<T>
. It yieldsNone
first, then yieldsSome(item)
for each possible value ofT
.- Enumerator for
(A,)
. - Enumerator for tuples with 2 elements.
- Enumerator for tuples with 3 elements.
- Enumerator for tuples with 4 elements.
- Enumerator for tuples with 5 elements.
- Enumerator for tuples with 6 elements.
- Enumerator for tuples with 7 elements.
- Enumerator for tuples with 8 elements.
- Enumerator for tuples with 9 elements.
- Enumerator for tuples with 10 elements.
- Enumerator for tuples with 11 elements.
- Enumerator for tuples with 12 elements.
- Enumerator for tuples with 13 elements.
- Enumerator for tuples with 14 elements.
- Enumerator for tuples with 15 elements.
- Enumerator for tuples with 16 elements.
Traits§
Enumerable
is a trait for types that can have their possible values enumerated.
Derive Macros§
- Derives the
Enumerable
trait for an enum or struct.