Trait rayon::iter::FromParallelIterator [] [src]

pub trait FromParallelIterator<T> where
    T: Send
{ fn from_par_iter<I>(par_iter: I) -> Self
    where
        I: IntoParallelIterator<Item = T>
; }

FromParallelIterator implements the conversion from a ParallelIterator. By implementing FromParallelIterator for a type, you define how it will be created from an iterator.

FromParallelIterator is used through ParallelIterator's collect() method.

Required Methods

Implementations on Foreign Types

impl<T> FromParallelIterator<T> for Vec<T> where
    T: Send
[src]

Collect items from a parallel iterator into a freshly allocated vector.

[src]

impl<T> FromParallelIterator<T> for VecDeque<T> where
    T: Send
[src]

Collect items from a parallel iterator into a vecdeque.

[src]

impl<T> FromParallelIterator<T> for BinaryHeap<T> where
    T: Ord + Send
[src]

Collect items from a parallel iterator into a binaryheap. The heap-ordering is calculated serially after all items are collected.

[src]

impl<T> FromParallelIterator<T> for LinkedList<T> where
    T: Send
[src]

Collect items from a parallel iterator into a freshly allocated linked list.

[src]

impl<K, V, S> FromParallelIterator<(K, V)> for HashMap<K, V, S> where
    K: Eq + Hash + Send,
    V: Send,
    S: BuildHasher + Default + Send
[src]

Collect (key, value) pairs from a parallel iterator into a hashmap. If multiple pairs correspond to the same key, then the ones produced earlier in the parallel iterator will be overwritten, just as with a sequential iterator.

[src]

impl<K, V> FromParallelIterator<(K, V)> for BTreeMap<K, V> where
    K: Ord + Send,
    V: Send
[src]

Collect (key, value) pairs from a parallel iterator into a btreemap. If multiple pairs correspond to the same key, then the ones produced earlier in the parallel iterator will be overwritten, just as with a sequential iterator.

[src]

impl<V, S> FromParallelIterator<V> for HashSet<V, S> where
    V: Eq + Hash + Send,
    S: BuildHasher + Default + Send
[src]

Collect values from a parallel iterator into a hashset.

[src]

impl<V> FromParallelIterator<V> for BTreeSet<V> where
    V: Send + Ord
[src]

Collect values from a parallel iterator into a btreeset.

[src]

impl FromParallelIterator<char> for String
[src]

Collect characters from a parallel iterator into a string.

[src]

impl<'a> FromParallelIterator<&'a str> for String
[src]

Collect string slices from a parallel iterator into a string.

[src]

impl FromParallelIterator<String> for String
[src]

Collect strings from a parallel iterator into one large string.

[src]

Implementors