Skip to content

Port modules "str" and "vec" to interface "iter" #1729

@kud1ing

Description

@kud1ing

"iter" is now in core: 303e48e

  • Implement the "iter" interface for "str" and "vec".
  • Functions like str::any, vec::all etc. should be moved to "iter", so that the functionality has only one implementation in "iter".
  • Remove now unnecessary function definitions in "str" and "vec".

Also we could have only functions which iterate.
E.g. if we only provide str::chars_iter, we could get rid of str::chars, since this can be easily implemented using iter::to_list and str::chars_iter.

See https://mail.mozilla.org/pipermail/rust-dev/2012-January/001216.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions