Open
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
Metadata
Metadata
Assignees
Labels
Area: IteratorsBlocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are considered "small" or self-containedLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.