IntoMaybeParallelIterator

Trait IntoMaybeParallelIterator 

Source
pub trait IntoMaybeParallelIterator {
    type Item;
    type Iter: Iterator<Item = Self::Item>;

    // Required method
    fn into_maybe_par_iter(self) -> MaybeParallelIterator<Self::Iter>;
}
Expand description

Extends iterable collections with a function to create a [Computation].

If the rayon feature is enabled, this will implemented and be implemented for IntoParallelIterator.

Otherwise, this will implement and be implemented for IntoIterator.

Required Associated Types§

Source

type Item

Source

type Iter: Iterator<Item = Self::Item>

Required Methods§

Implementors§