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.

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