flux_common::iterTrait IterExt
Source pub trait IterExt: Iterator {
// Provided methods
fn try_collect_vec<T, E>(self) -> Result<Vec<T>, E>
where Self: Sized + Iterator<Item = Result<T, E>> { ... }
fn collect_errors<T, E, C>(
self,
collector: &mut C,
) -> CollectErrors<'_, Self, C> ⓘ
where Self: Iterator<Item = Result<T, E>> + Sized,
C: ErrorCollector<E> { ... }
fn try_collect_exhaust<T, V>(self) -> Result<V, ErrorGuaranteed>
where V: FromIterator<T>,
Self: Iterator<Item = Result<T, ErrorGuaranteed>> + Sized { ... }
fn try_for_each_exhaust<T, F>(self, f: F) -> Result<(), ErrorGuaranteed>
where Self: Iterator<Item = T> + Sized,
F: FnMut(T) -> Result<(), ErrorGuaranteed> { ... }
fn map_take_while<F, R>(&mut self, f: F) -> MapTakeWhile<'_, Self, F> ⓘ
where Self: Clone,
F: FnMut(&Self::Item) -> Option<R> { ... }
}