-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support Iterating and Indexing on Nightly #1
Comments
Iterating is completely implemented, including double ended iterator, fused iterator, exact size iterator, and trusted len. It should be noted that released is blocked on either autocfg releasing support for feature probing or this crate switching to a different build assistant crate. |
Indexing will actually not have to be |
Almost all indexing is done. The only thing that may still be desired is implementing |
This is now completely implemented in the I suppose if people want |
It seems that supporting Iterating and Indexing on stable is tricky at the moment, due
std::iter::Step
andstd::slice::SliceIndex
having experimental APIs. ForStep
, I've considered using thestep
crate to accomplish the same purpose. The only issue is it forces users to implementstep::Step
if they want to iterate over a custom steppable range.An alternative is to make iterating and indexing both available, in the same manner as they are implemented for the standard library range types, on nightly channels only. It seems that [
autocfg
](https://crates.io/crates/autocfg does not currently offer probing channels yet, although it may come in the future.rustc_version
is another crate which can probe channels.Another possibility is to lock iterating and indexing behind a nightly feature, allowing users to opt-in using cargo features.
The text was updated successfully, but these errors were encountered: