Trait ParallelExtend
pub trait ParallelExtend<T>
where
T: Send,
ParallelExtend extends an existing collection with items from a ParallelIterator.
Examples
Implementing ParallelExtend for your type:
use *;
let mut bh = BlackHole ;
bh.par_extend;
assert_eq!;
bh.par_extend;
assert_eq!;
Required Methods
fn par_extend<I>(&mut self, par_iter: I) where I: IntoParallelIterator<Item = T>,Extends an instance of the collection with the elements drawn from the parallel iterator
par_iter.Examples
use *; let mut vec = vec!; vec.par_extend; vec.par_extend; assert_eq!;
Implementors
impl ParallelExtend<()> for ()impl ParallelExtend<Box<str>> for Stringimpl ParallelExtend<OsString> for OsStringimpl ParallelExtend<String> for Stringimpl ParallelExtend<char> for Stringimpl<'a> ParallelExtend<&'a OsStr> for OsStringimpl<'a> ParallelExtend<&'a char> for Stringimpl<'a> ParallelExtend<&'a str> for Stringimpl<'a> ParallelExtend<Cow<'a, OsStr>> for OsStringimpl<'a> ParallelExtend<Cow<'a, str>> for Stringimpl<'a, K, V> ParallelExtend<(&'a K, &'a V)> for BTreeMap<K, V> where K: Copy + Ord + Send + Sync + 'a, V: Copy + Send + Sync + 'a,impl<'a, K, V, S> ParallelExtend<(&'a K, &'a V)> for HashMap<K, V, S> where K: Copy + Eq + Hash + Send + Sync + 'a, V: Copy + Send + Sync + 'a, S: BuildHasher + Send,impl<'a, T> ParallelExtend<&'a T> for BTreeSet<T> where T: 'a + Copy + Ord + Send + Sync,impl<'a, T> ParallelExtend<&'a T> for BinaryHeap<T> where T: 'a + Copy + Ord + Send + Sync,impl<'a, T> ParallelExtend<&'a T> for LinkedList<T> where T: 'a + Copy + Send + Sync,impl<'a, T> ParallelExtend<&'a T> for Vec<T> where T: 'a + Copy + Send + Sync,impl<'a, T> ParallelExtend<&'a T> for VecDeque<T> where T: 'a + Copy + Send + Sync,impl<'a, T, S> ParallelExtend<&'a T> for HashSet<T, S> where T: 'a + Copy + Eq + Hash + Send + Sync, S: BuildHasher + Send,impl<A, B, FromA, FromB> ParallelExtend<(A, B)> for (FromA, FromB) where A: Send, B: Send, FromA: Send + ParallelExtend<A>, FromB: Send + ParallelExtend<B>,impl<K, V> ParallelExtend<(K, V)> for BTreeMap<K, V> where K: Ord + Send, V: Send,impl<K, V, S> ParallelExtend<(K, V)> for HashMap<K, V, S> where K: Eq + Hash + Send, V: Send, S: BuildHasher + Send,impl<L, R, A, B> ParallelExtend<Either<L, R>> for (A, B) where L: Send, R: Send, A: Send + ParallelExtend<L>, B: Send + ParallelExtend<R>,impl<L, R, T> ParallelExtend<T> for Either<L, R> where L: ParallelExtend<T>, R: ParallelExtend<T>, T: Send,impl<T> ParallelExtend<T> for BTreeSet<T> where T: Ord + Send,impl<T> ParallelExtend<T> for BinaryHeap<T> where T: Ord + Send,impl<T> ParallelExtend<T> for LinkedList<T> where T: Send,impl<T> ParallelExtend<T> for Vec<T> where T: Send,impl<T> ParallelExtend<T> for VecDeque<T> where T: Send,impl<T, S> ParallelExtend<T> for HashSet<T, S> where T: Eq + Hash + Send, S: BuildHasher + Send,