Tracking Issue for Iterator::try_find (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 supportingOptionand otherTrytypes Decide on generic-ness of functions like Iterator::try_find and array::try_map #85115 - Final commenting period (FCP)
- Stabilization PR