halo2curves_axiom::multicore

Trait IntoParallelIterator

Source
pub trait IntoParallelIterator {
    type Iter: ParallelIterator<Item = Self::Item>;
    type Item: Send;

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

IntoParallelIterator implements the conversion to a ParallelIterator.

By implementing IntoParallelIterator for a type, you define how it will transformed into an iterator. This is a parallel version of the standard library’s std::iter::IntoIterator trait.

Required Associated Types§

Source

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

The parallel iterator type that will be created.

Source

type Item: Send

The type of item that the parallel iterator will produce.

Required Methods§

Source

fn into_par_iter(self) -> Self::Iter

Converts self into a parallel iterator.

§Examples
use rayon::prelude::*;

println!("counting in parallel:");
(0..100).into_par_iter()
    .for_each(|i| println!("{}", i));

This conversion is often implicit for arguments to methods like zip.

use rayon::prelude::*;

let v: Vec<_> = (0..5).into_par_iter().zip(5..10).collect();
assert_eq!(v, [(0, 5), (1, 6), (2, 7), (3, 8), (4, 9)]);

Implementations on Foreign Types§

Source§

impl<'a, A> IntoParallelIterator for &'a (A,)

Source§

impl<'a, A> IntoParallelIterator for &'a mut (A,)

Source§

impl<'a, A, B> IntoParallelIterator for &'a (A, B)

Source§

impl<'a, A, B> IntoParallelIterator for &'a mut (A, B)

Source§

impl<'a, A, B, C> IntoParallelIterator for &'a (A, B, C)

Source§

impl<'a, A, B, C> IntoParallelIterator for &'a mut (A, B, C)

Source§

impl<'a, A, B, C, D> IntoParallelIterator for &'a (A, B, C, D)

Source§

impl<'a, A, B, C, D> IntoParallelIterator for &'a mut (A, B, C, D)

Source§

impl<'a, A, B, C, D, E> IntoParallelIterator for &'a (A, B, C, D, E)

Source§

impl<'a, A, B, C, D, E> IntoParallelIterator for &'a mut (A, B, C, D, E)

Source§

impl<'a, A, B, C, D, E, F> IntoParallelIterator for &'a (A, B, C, D, E, F)

Source§

impl<'a, A, B, C, D, E, F> IntoParallelIterator for &'a mut (A, B, C, D, E, F)

Source§

impl<'a, A, B, C, D, E, F, G> IntoParallelIterator for &'a (A, B, C, D, E, F, G)

Source§

impl<'a, A, B, C, D, E, F, G> IntoParallelIterator for &'a mut (A, B, C, D, E, F, G)

Source§

impl<'a, A, B, C, D, E, F, G, H> IntoParallelIterator for &'a (A, B, C, D, E, F, G, H)

Source§

impl<'a, A, B, C, D, E, F, G, H> IntoParallelIterator for &'a mut (A, B, C, D, E, F, G, H)

Source§

impl<'a, A, B, C, D, E, F, G, H, I> IntoParallelIterator for &'a (A, B, C, D, E, F, G, H, I)

Source§

impl<'a, A, B, C, D, E, F, G, H, I> IntoParallelIterator for &'a mut (A, B, C, D, E, F, G, H, I)

Source§

impl<'a, A, B, C, D, E, F, G, H, I, J> IntoParallelIterator for &'a (A, B, C, D, E, F, G, H, I, J)

Source§

impl<'a, A, B, C, D, E, F, G, H, I, J> IntoParallelIterator for &'a mut (A, B, C, D, E, F, G, H, I, J)

Source§

impl<'a, A, B, C, D, E, F, G, H, I, J, K> IntoParallelIterator for &'a (A, B, C, D, E, F, G, H, I, J, K)

Source§

impl<'a, A, B, C, D, E, F, G, H, I, J, K> IntoParallelIterator for &'a mut (A, B, C, D, E, F, G, H, I, J, K)

Source§

impl<'a, A, B, C, D, E, F, G, H, I, J, K, L> IntoParallelIterator for &'a (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

impl<'a, A, B, C, D, E, F, G, H, I, J, K, L> IntoParallelIterator for &'a mut (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

impl<'a, K, V> IntoParallelIterator for &'a BTreeMap<K, V>
where K: Ord + Sync, V: Sync,

Source§

type Item = <&'a BTreeMap<K, V> as IntoIterator>::Item

Source§

type Iter = Iter<'a, K, V>

Source§

fn into_par_iter(self) -> <&'a BTreeMap<K, V> as IntoParallelIterator>::Iter

Source§

impl<'a, K, V> IntoParallelIterator for &'a mut BTreeMap<K, V>
where K: Ord + Sync, V: Send,

Source§

type Item = <&'a mut BTreeMap<K, V> as IntoIterator>::Item

Source§

type Iter = IterMut<'a, K, V>

Source§

fn into_par_iter(self) -> <&'a mut BTreeMap<K, V> as IntoParallelIterator>::Iter

Source§

impl<'a, K, V, S> IntoParallelIterator for &'a HashMap<K, V, S>
where K: Hash + Eq + Sync, V: Sync, S: BuildHasher,

Source§

type Item = <&'a HashMap<K, V, S> as IntoIterator>::Item

Source§

type Iter = Iter<'a, K, V>

Source§

fn into_par_iter(self) -> <&'a HashMap<K, V, S> as IntoParallelIterator>::Iter

Source§

impl<'a, K, V, S> IntoParallelIterator for &'a mut HashMap<K, V, S>
where K: Hash + Eq + Sync, V: Send, S: BuildHasher,

Source§

type Item = <&'a mut HashMap<K, V, S> as IntoIterator>::Item

Source§

type Iter = IterMut<'a, K, V>

Source§

fn into_par_iter( self, ) -> <&'a mut HashMap<K, V, S> as IntoParallelIterator>::Iter

Source§

impl<'a, T> IntoParallelIterator for &'a Option<T>
where T: Sync,

Source§

impl<'a, T> IntoParallelIterator for &'a BinaryHeap<T>
where T: Ord + Sync,

Source§

impl<'a, T> IntoParallelIterator for &'a BTreeSet<T>
where T: Ord + Sync,

Source§

impl<'a, T> IntoParallelIterator for &'a LinkedList<T>
where T: Sync,

Source§

impl<'a, T> IntoParallelIterator for &'a VecDeque<T>
where T: Sync,

Source§

impl<'a, T> IntoParallelIterator for &'a mut Option<T>
where T: Send,

Source§

impl<'a, T> IntoParallelIterator for &'a mut LinkedList<T>
where T: Send,

Source§

impl<'a, T> IntoParallelIterator for &'a mut VecDeque<T>
where T: Send,

Source§

impl<'a, T, E> IntoParallelIterator for &'a Result<T, E>
where T: Sync,

Source§

impl<'a, T, E> IntoParallelIterator for &'a mut Result<T, E>
where T: Send,

Source§

impl<'a, T, S> IntoParallelIterator for &'a HashSet<T, S>
where T: Hash + Eq + Sync, S: BuildHasher,

Source§

type Item = <&'a HashSet<T, S> as IntoIterator>::Item

Source§

type Iter = Iter<'a, T>

Source§

fn into_par_iter(self) -> <&'a HashSet<T, S> as IntoParallelIterator>::Iter

Source§

impl<'data, T> IntoParallelIterator for &'data [T]
where T: Sync + 'data,

Source§

impl<'data, T> IntoParallelIterator for &'data Vec<T>
where T: Sync + 'data,

Source§

type Item = &'data T

Source§

type Iter = Iter<'data, T>

Source§

fn into_par_iter(self) -> <&'data Vec<T> as IntoParallelIterator>::Iter

Source§

impl<'data, T> IntoParallelIterator for &'data mut [T]
where T: Send + 'data,

Source§

impl<'data, T> IntoParallelIterator for &'data mut Vec<T>
where T: Send + 'data,

Source§

type Item = &'data mut T

Source§

type Iter = IterMut<'data, T>

Source§

fn into_par_iter(self) -> <&'data mut Vec<T> as IntoParallelIterator>::Iter

Source§

impl<'data, T, const N: usize> IntoParallelIterator for &'data [T; N]
where T: Sync + 'data,

Source§

impl<'data, T, const N: usize> IntoParallelIterator for &'data mut [T; N]
where T: Send + 'data,

Source§

impl<A> IntoParallelIterator for (A,)

Source§

impl<A, B> IntoParallelIterator for (A, B)

Source§

impl<A, B, C> IntoParallelIterator for (A, B, C)

Source§

impl<A, B, C, D> IntoParallelIterator for (A, B, C, D)

Source§

impl<A, B, C, D, E> IntoParallelIterator for (A, B, C, D, E)

Source§

impl<A, B, C, D, E, F> IntoParallelIterator for (A, B, C, D, E, F)

Source§

impl<A, B, C, D, E, F, G> IntoParallelIterator for (A, B, C, D, E, F, G)

Source§

impl<A, B, C, D, E, F, G, H> IntoParallelIterator for (A, B, C, D, E, F, G, H)

Source§

impl<A, B, C, D, E, F, G, H, I> IntoParallelIterator for (A, B, C, D, E, F, G, H, I)

Source§

impl<A, B, C, D, E, F, G, H, I, J> IntoParallelIterator for (A, B, C, D, E, F, G, H, I, J)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> IntoParallelIterator for (A, B, C, D, E, F, G, H, I, J, K)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> IntoParallelIterator for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

impl<K, V> IntoParallelIterator for BTreeMap<K, V>
where K: Ord + Send, V: Send,

Source§

impl<K, V, S> IntoParallelIterator for HashMap<K, V, S>
where K: Hash + Eq + Send, V: Send, S: BuildHasher,

Source§

impl<T> IntoParallelIterator for Option<T>
where T: Send,

Source§

impl<T> IntoParallelIterator for BinaryHeap<T>
where T: Ord + Send,

Source§

impl<T> IntoParallelIterator for BTreeSet<T>
where T: Ord + Send,

Source§

impl<T> IntoParallelIterator for LinkedList<T>
where T: Send,

Source§

impl<T> IntoParallelIterator for VecDeque<T>
where T: Send,

Source§

impl<T> IntoParallelIterator for Vec<T>
where T: Send,

Source§

impl<T> IntoParallelIterator for Range<T>

Implemented for ranges of all primitive integer types and char.

Source§

impl<T> IntoParallelIterator for RangeInclusive<T>

Implemented for ranges of all primitive integer types and char.

Source§

impl<T, E> IntoParallelIterator for Result<T, E>
where T: Send,

Source§

impl<T, S> IntoParallelIterator for HashSet<T, S>
where T: Hash + Eq + Send, S: BuildHasher,

Source§

impl<T, const N: usize> IntoParallelIterator for [T; N]
where T: Send,

Implementors§