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

Implement ExactSizeIterator for (Circular)TupleWindows #752

Merged

Commits on Sep 18, 2023

  1. CircularTupleWindows::size_hint

    Add a field to know the length of the iterator.
    Philippe-Cholet committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    b8add18 View commit details
    Browse the repository at this point in the history
  2. impl ExactSizeIterator for CircularTupleWindows

    Implemented under the same conditions `Iterator` is implemented.
    It implements a method `len` which rely on an exact size hint.
    Philippe-Cholet committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    fa4faa1 View commit details
    Browse the repository at this point in the history
  3. impl FusedIterator for CircularTupleWindows

    Implemented under the same conditions `Iterator` and `ExactSizeIterator` are implemented.
    Philippe-Cholet committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    96b921d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    976cea6 View commit details
    Browse the repository at this point in the history
  5. CircularTupleWindows: unwrap Take type from iter field

    `len` was a duplicate since `Take` also had it.
    `CircularTupleWindows::next` is how is implemented `Take::next`.
    Philippe-Cholet committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    76bc5be View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Configuration menu
    Copy the full SHA
    817bf4a View commit details
    Browse the repository at this point in the history
  2. ExactSizeIterator for TupleWindows

    With the additional condition that `I` is an exact size iterator.
    Philippe-Cholet committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    d68e47c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b885923 View commit details
    Browse the repository at this point in the history