GeminiLab / enumerable

Enumerate all possible values of a type in Rust.
https://docs.rs/enumerable
MIT License
1 stars 1 forks source link

Fix derive(Enumerable) for unit structs #16

Closed stepancheg closed 2 months ago

stepancheg commented 2 months ago

It should yield single element: self, not empty.

Also add tests for struct derive.

stepancheg commented 2 months ago

OK, I see there's PR #13 to dev branch.