We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ConIterOfRange
Idx: std::iter::Step
Currently, we cannot use this directly because the Step trait is unstable. The issue can be tracked here: rust-lang/rust#42168
Step
This causes adding manual and very noisy trait bounds:
where Idx: Send + Sync + Clone + Copy + From<usize> + Into<usize> + Add<Idx, Output = Idx> + Sub<Idx, Output = Idx> + Ord,
which could simply be replaced by
where Idx: Send + Sync + Step
A bigger problem is the implementation of the fetch_n method which even affects the type of the returned iterator.
fetch_n
Idx: Step
begin_value..end_value
(begin_idx..end_idx).map(Idx::from)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, we cannot use this directly because the
Step
trait is unstable. The issue can be tracked here: rust-lang/rust#42168This causes adding manual and very noisy trait bounds:
which could simply be replaced by
A bigger problem is the implementation of the
fetch_n
method which even affects the type of the returned iterator.Idx: Step
trait bound, we could have simply returnedbegin_value..end_value
.(begin_idx..end_idx).map(Idx::from)
The text was updated successfully, but these errors were encountered: