Skip to content
New issue

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

Weekday doesn't implement Step #538

Closed
koenichiwa opened this issue Feb 19, 2021 · 1 comment
Closed

Weekday doesn't implement Step #538

koenichiwa opened this issue Feb 19, 2021 · 1 comment

Comments

@koenichiwa
Copy link

koenichiwa commented Feb 19, 2021

I'm working on the cron library, and I was doing some preliminary research on how to get all types to comply with chrono's types. Currently the type of weekdays on cron's side is u32, but I would like it to be of chrono::Weekday.

Now I need to iterate over a range of weekdays. Rust is telling me that Weekday doesn't implement the Step trait though. I know that there is a related issue: rust-lang/rust#42168

Are there plans to implement this this trait in the future? Otherwise, is there a way to work around this?

@koenichiwa koenichiwa changed the title Weekday doesn't implement step Weekday doesn't implement Step Feb 19, 2021
@pitdicker
Copy link
Collaborator

As you wrote the Step trait is unstable and doesn't seem to make much progress. I think it is best to close this issue, as there is nothing we can do for the foreseeable future.

#208 also tracks the TrustedLen and Step traits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants