-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-iteratorsArea: IteratorsArea: IteratorsB-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 RFCLibs-SmallLibs issues that are considered "small" or self-containedLibs issues that are considered "small" or self-containedLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-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.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
Adds try_find
to Iterator
.
PR: #63177
fn try_find<F, E, R>(&mut self, f: F) -> Result<Option<Self::Item>, E>
where
F: FnMut(&Self::Item) -> R,
R: Try<Ok = bool, Error = E>;
Open questions:
- Decide on just-
Result
, vs potentially supportingOption
and otherTry
types Decide on generic-ness of functions likeIterator::try_find
andarray::try_map
#85115 - Final commenting period (FCP)
- Stabilization PR
jplatte, jurf, schneiderfelipe, edmorley, MarkTanashchuk and 5 moreschneiderfelipe, suxiaogang223, edhaase and bjoernagerstanislav-tkach and stevenengler
Metadata
Metadata
Assignees
Labels
A-iteratorsArea: IteratorsArea: IteratorsB-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 RFCLibs-SmallLibs issues that are considered "small" or self-containedLibs issues that are considered "small" or self-containedLibs-TrackedLibs issues that are tracked on the team's project board.Libs issues that are tracked on the team's project board.T-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.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.