Closed emilioziniades closed 1 year ago
Nevermind, I didn't see that Step
has not been stabilized yet. I am using stable rust, but for some reason the compiler refers to Step
. Here's an example
The compiler refers to it because it's still used internally there. I assure you that it will implement Step
once it's stable! It's one of a number of features I'm tracking, and one I have actually put in some work to get closer to stabilization.
Ah okay cool, thanks for getting back to me. It's a neat trait and looking forward to it being stabilised.
It would be nice to do something like
I naively tried this and got the following compiler error: "the trait
Step
is not implemented fortime::Date
"Having a look at
std::iter::Step
, it looks pretty straightforward to implement.If this is something worth doing, I'd be happy to throw together a quick PR.