Skip to content

ArrayWindows<I; N> should be ExactSizeIterator when I is and N > 0 #1117

Description

@ronnodas

If iter yields k items then iter.array_windows::<N>() yields (k + 1).saturating_sub(N) items. While the condition N > 0 is currently not enforceable via where bounds, we can have the impl concretely for N in 1..=12.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions