ParallelCollectCombinedResult

Trait ParallelCollectCombinedResult 

pub trait ParallelCollectCombinedResult {
    type Item;

    // Required method
    fn collect_combined_result<B>(self) -> Result<B, EcoVec<SourceDiagnostic>>
       where B: FromIterator<Self::Item>;
}
Expand description

A variation of CollectCombinedResult for parallel rayon iterators.

Needs to be a separate trait because we can’t have two blanket impls.

Required Associated Types§

type Item

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<I, T> ParallelCollectCombinedResult for I
where I: ParallelIterator<Item = Result<T, EcoVec<SourceDiagnostic>>>, T: Send,

§

type Item = T