Benign cargo Download

from_par_iter.rs

SHA-256038f5c7f7280636bd23fafd275594ae3ba912e534841a3d125619084f9c48775
Malecule∅

Evidence

imports std::borrow::Cow lines 1–13
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 …
English function-word token "for" lines 21–26
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 …
English function-word token "the" lines 43–45
43:19… from a parallel iterator into a binaryheap.
44/// The heap-ordering is calculated serially after all items are collected.
45impl<T> FromParallelIterato …
English function-word token "with" lines 69–72
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 …
Rust materializes an iterator with .collect() lines 194–199
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: …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.