Function core::iter::adapters::try_process
source · pub(crate) fn try_process<I, T, R, F, U>(
iter: I,
f: F
) -> <<I::Item as Try>::Residual as Residual<U>>::TryTypewhere
I: Iterator<Item: Try<Output = T, Residual = R>>,
for<'a> F: FnMut(GenericShunt<'a, I, R>) -> U,
R: Residual<U>,
Expand description
Process the given iterator as if it yielded a the item’s Try::Output
type instead. Any Try::Residual
s encountered will stop the inner iterator
and be propagated back to the overall result.