Closed pickx closed 1 year ago
Hey, thanks for filing the feature request. I am happy to add an optional feature to support step_trait. I actually have that need from time to time as well.
I'm planning to get this in within a few days.
Hey, thanks for filing the feature request. I am happy to add an optional feature to support step_trait. I actually have that need from time to time as well.
I'm planning to get this in within a few days.
if that is okay with you - I have implemented this already, so perhaps I can open a PR and see whatever additional changes it would require.
Oh awesome! Sure, please send over a PR
Merged it. Do you want this published on crates.io right away or is it enough to roll this into whatever is the next version?
thanks for merging. I don't need this right now, so feel free to publish this whenever you want.
Sounds good. Thanks again for your contribution!
Currently it is not possible to do something like
Implementing this would be possible if/when
step_trait
is stable.Alternatively it is possible to create a new range-like type which implements
IntoIterator
, produced by something likeu5::range(u5::MIN, u5::MAX)
. The downside of course is that this function would become unnecessary ifstep_trait
is stabilized.