Skip to content

Tracking Issue for peek_index #130711

Open
Tracking Issue
@x4exr

Description

@x4exr

Feature gate: #![feature(peek_index)]

This is a tracking issue for the new peek_index function on the Enumerate iterator.

Public API

let e = vec![1, 2, 3].into_iter().enumerate();
assert_eq!(e.peek_index(), 0);
e.next();
assert_eq!(e.peek_index(), 1);

Steps / History

  • Created ACP issue.
  • Opened pull request following the ACP approval.

Unresolved Questions

  • None yet.

Metadata

Metadata

Assignees

Labels

C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions