from_par_iter.rs
SHA-256038f5c7f7280636bd23fafd275594ae3ba912e534841a3d125619084f9c48775
Malecule∅
Evidence
1use super::{FromParallelIterator, IntoParallelIterator, ParallelIterator, ParallelExtend};
2
3use std::borrow::Cow;
4use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
5use std::hash::{BuildHasher, Hash};
6use std::collections::LinkedList;
7use std::collections::{BinaryHeap, VecDeque};
8
9
10/// Create an empty default collection and extend it.
11fn collect_extended<C, I>(par_iter: I) -> C
12 where I: IntoParallelIterator,
13 …
21:43… into a vector.
22impl<T> FromParallelIterator<T> for Vec<T>
23 where T: Send
24{
25 fn from_par_iter<I>(par_iter: I) -> Self
26 where I: IntoPa …
43:19… from a parallel iterator into a binaryheap.
44/// The heap-ordering is calculated serially after all items are collected.
45impl<T> FromParallelIterato …
69:37… allel iterator will be
70/// overwritten, just as with a sequential iterator.
71impl<K, V, S> FromParallelIterator<(K, V)> for HashMap<K, V, S>
72 wher …
194:7… .map(|x| writeln!(stdout(), "{}", x))
195/// .collect();
196/// assert!(res.is_ok());
197/// ```
198impl FromParallelIterator<()> for () {
199 fn from_par_iter<I>(par_iter: …