Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntoEnumIterator does not have a constraint on Iterator: Iterator<Item=Self>. When writing generic code on any IntoEnumIterator, it forces us to write the very verbose:
IntoEnumIterator
Iterator: Iterator<Item=Self>.
where <Self as IntoEnumIterator>::Iterator: Iterator<Item = Self>,
though that behaviour could be enforced as it is documented on the trait.
We could avoid having to write this by adding an Iterator<Item=Self> bound on the associated type Iterator of IntoEnumIterator.
Iterator<Item=Self>
Iterator
The text was updated successfully, but these errors were encountered:
Made a fix for #80
da37cc3
Simple and shouldn't break anyone unless they were manually implementing the trait on something other than an enum.
This was easy so I went ahead and added it to version 0.18.0. [https://crates.io/crates/strum]
0.18.0
Sorry, something went wrong.
No branches or pull requests
IntoEnumIterator
does not have a constraint onIterator: Iterator<Item=Self>.
When writing generic code on any
IntoEnumIterator
, it forces us to write the very verbose:though that behaviour could be enforced as it is documented on the trait.
We could avoid having to write this by adding an
Iterator<Item=Self>
bound on the associated typeIterator
ofIntoEnumIterator
.The text was updated successfully, but these errors were encountered: