-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.In the final comment period and will be merged soon unless new substantive objections are raised.
Description
PR: #39399
Unanswered: should this method be part of DoubleEndedIterator or Iterator?
Pros:
- Avoids cluttering
Iteratordocs - Avoids extra constraint in
whereclause - Puts method where it is actually enabled
Cons:
- Inconsistency if other methods (
rev,rposition) aren't moved to DEI - Breaking change if other methods are moved to DEI
- Fragments iterator docs; no longer just in
Iterator - Requires typing
DoubleEndedIterator::rfindif passed into a function instead ofIterator::find
Noting the above, should Iterator::rev and Iterator::rposition be moved to DEI as well?
Metadata
Metadata
Assignees
Labels
B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.In the final comment period and will be merged soon unless new substantive objections are raised.