Skip to content

Vec Iterator inconsistencies #10962

Closed
Closed
@DaGenix

Description

@DaGenix

It seems like there are some inconsistencies regarding iterators in vec.rs. Just to pick two examples:

  1. SplitIterator and MutSplitIterator yield an empty slice when used on an empty vector. ChunkIter and MutChunkIter do not.
  2. SplitIterator and MutSplitIterator are named differently than ChunkIter and MutChunkIter.

Whats the correct behavior for vec iterators on an empty slice? Is there a good reason that I'm not thinking of that they behave differently?

Whats the correct naming convention?

@TeXitoi

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