Tracking Issue for Iterator::try_find · Issue #63178 · rust-lang/rust (original) (raw)
Adds try_find
to Iterator
.
PR: #63177
fn try_find<F, E, R>(&mut self, f: F) -> Result<OptionSelf::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 like Iterator::try_find and array::try_map #85115 - Final commenting period (FCP)
- Stabilization PR