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
Feature gate:
#![feature(peek_index)]This is a tracking issue for the new
peek_indexfunction on the Enumerate iterator.Public API
Steps / History
Unresolved Questions