Skip to main content

ParPartitionResult

Trait ParPartitionResult 

Source
pub trait ParPartitionResult<T, E>: ParallelIterator<Item = Result<T, E>> {
    // Provided method
    fn partition_result(self) -> (Vec<T>, Vec<E>)
       where T: Send,
             E: Send { ... }
}
Expand description

Extension trait for parallel Result iterators.

Provided Methods§

Source

fn partition_result(self) -> (Vec<T>, Vec<E>)
where T: Send, E: Send,

Partitions parallel iterator into successes and failures.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, E, I> ParPartitionResult<T, E> for I
where I: ParallelIterator<Item = Result<T, E>>, T: Send, E: Send,