]> git.proxmox.com Git - rustc.git/blobdiff - vendor/rayon/src/iter/from_par_iter.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / vendor / rayon / src / iter / from_par_iter.rs
index 5797df427cc21cc43f198d0b551168b573468567..3240f32e216ea095c528659a1cd7ec52d6c7234f 100644 (file)
@@ -7,7 +7,7 @@ use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
 use std::collections::{BinaryHeap, VecDeque};
 use std::hash::{BuildHasher, Hash};
 
-/// Create an empty default collection and extend it.
+/// Creates an empty default collection and extends it.
 fn collect_extended<C, I>(par_iter: I) -> C
 where
     I: IntoParallelIterator,
@@ -18,7 +18,7 @@ where
     collection
 }
 
-/// Collect items from a parallel iterator into a vector.
+/// Collects items from a parallel iterator into a vector.
 impl<T> FromParallelIterator<T> for Vec<T>
 where
     T: Send,
@@ -31,7 +31,7 @@ where
     }
 }
 
-/// Collect items from a parallel iterator into a vecdeque.
+/// Collects items from a parallel iterator into a vecdeque.
 impl<T> FromParallelIterator<T> for VecDeque<T>
 where
     T: Send,
@@ -44,7 +44,7 @@ where
     }
 }
 
-/// Collect items from a parallel iterator into a binaryheap.
+/// Collects items from a parallel iterator into a binaryheap.
 /// The heap-ordering is calculated serially after all items are collected.
 impl<T> FromParallelIterator<T> for BinaryHeap<T>
 where
@@ -58,7 +58,7 @@ where
     }
 }
 
-/// Collect items from a parallel iterator into a freshly allocated
+/// Collects items from a parallel iterator into a freshly allocated
 /// linked list.
 impl<T> FromParallelIterator<T> for LinkedList<T>
 where
@@ -72,7 +72,7 @@ where
     }
 }
 
-/// Collect (key, value) pairs from a parallel iterator into a
+/// Collects (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.
@@ -90,7 +90,7 @@ where
     }
 }
 
-/// Collect (key, value) pairs from a parallel iterator into a
+/// Collects (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.
@@ -107,7 +107,7 @@ where
     }
 }
 
-/// Collect values from a parallel iterator into a hashset.
+/// Collects values from a parallel iterator into a hashset.
 impl<V, S> FromParallelIterator<V> for HashSet<V, S>
 where
     V: Eq + Hash + Send,
@@ -121,7 +121,7 @@ where
     }
 }
 
-/// Collect values from a parallel iterator into a btreeset.
+/// Collects values from a parallel iterator into a btreeset.
 impl<V> FromParallelIterator<V> for BTreeSet<V>
 where
     V: Send + Ord,
@@ -134,7 +134,7 @@ where
     }
 }
 
-/// Collect characters from a parallel iterator into a string.
+/// Collects characters from a parallel iterator into a string.
 impl FromParallelIterator<char> for String {
     fn from_par_iter<I>(par_iter: I) -> Self
     where
@@ -144,7 +144,7 @@ impl FromParallelIterator<char> for String {
     }
 }
 
-/// Collect characters from a parallel iterator into a string.
+/// Collects characters from a parallel iterator into a string.
 impl<'a> FromParallelIterator<&'a char> for String {
     fn from_par_iter<I>(par_iter: I) -> Self
     where
@@ -154,7 +154,7 @@ impl<'a> FromParallelIterator<&'a char> for String {
     }
 }
 
-/// Collect string slices from a parallel iterator into a string.
+/// Collects string slices from a parallel iterator into a string.
 impl<'a> FromParallelIterator<&'a str> for String {
     fn from_par_iter<I>(par_iter: I) -> Self
     where
@@ -164,7 +164,7 @@ impl<'a> FromParallelIterator<&'a str> for String {
     }
 }
 
-/// Collect strings from a parallel iterator into one large string.
+/// Collects strings from a parallel iterator into one large string.
 impl FromParallelIterator<String> for String {
     fn from_par_iter<I>(par_iter: I) -> Self
     where
@@ -174,7 +174,7 @@ impl FromParallelIterator<String> for String {
     }
 }
 
-/// Collect string slices from a parallel iterator into a string.
+/// Collects string slices from a parallel iterator into a string.
 impl<'a> FromParallelIterator<Cow<'a, str>> for String {
     fn from_par_iter<I>(par_iter: I) -> Self
     where
@@ -184,7 +184,7 @@ impl<'a> FromParallelIterator<Cow<'a, str>> for String {
     }
 }
 
-/// Collect an arbitrary `Cow` collection.
+/// Collects an arbitrary `Cow` collection.
 ///
 /// Note, the standard library only has `FromIterator` for `Cow<'a, str>` and
 /// `Cow<'a, [T]>`, because no one thought to add a blanket implementation