Skip to content

Commit 9f1d1c4

Browse files
committed
Note impls that requires rayon
1 parent 9b09f97 commit 9f1d1c4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/rayon/map.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! You will rarely need to interact with this module directly unless you need to name one of the
44
//! iterator types.
5+
//!
6+
//! Requires crate feature `"rayon"`
57
68
use super::collect;
79
use super::rayon::prelude::*;
@@ -16,6 +18,7 @@ use Bucket;
1618
use Entries;
1719
use IndexMap;
1820

21+
/// Requires crate feature `"rayon"`.
1922
impl<K, V, S> IntoParallelIterator for IndexMap<K, V, S>
2023
where K: Hash + Eq + Send,
2124
V: Send,
@@ -60,6 +63,7 @@ impl<K: Send, V: Send> IndexedParallelIterator for IntoParIter<K, V> {
6063
}
6164

6265

66+
/// Requires crate feature `"rayon"`.
6367
impl<'a, K, V, S> IntoParallelIterator for &'a IndexMap<K, V, S>
6468
where K: Hash + Eq + Sync,
6569
V: Sync,
@@ -110,6 +114,7 @@ impl<'a, K: Sync, V: Sync> IndexedParallelIterator for ParIter<'a, K, V> {
110114
}
111115

112116

117+
/// Requires crate feature `"rayon"`.
113118
impl<'a, K, V, S> IntoParallelIterator for &'a mut IndexMap<K, V, S>
114119
where K: Hash + Eq + Sync + Send,
115120
V: Send,
@@ -147,6 +152,7 @@ impl<'a, K: Sync + Send, V: Send> IndexedParallelIterator for ParIterMut<'a, K,
147152
}
148153

149154

155+
/// Requires crate feature `"rayon"`.
150156
impl<K, V, S> IndexMap<K, V, S>
151157
where K: Hash + Eq + Sync,
152158
V: Sync,
@@ -255,6 +261,7 @@ impl<'a, K: Sync, V: Sync> IndexedParallelIterator for ParValues<'a, K, V> {
255261
}
256262

257263

264+
/// Requires crate feature `"rayon"`.
258265
impl<K, V, S> IndexMap<K, V, S>
259266
where K: Hash + Eq + Send,
260267
V: Send,
@@ -325,6 +332,7 @@ impl<'a, K: Send, V: Send> IndexedParallelIterator for ParValuesMut<'a, K, V> {
325332
}
326333

327334

335+
/// Requires crate feature `"rayon"`.
328336
impl<K, V, S> FromParallelIterator<(K, V)> for IndexMap<K, V, S>
329337
where K: Eq + Hash + Send,
330338
V: Send,
@@ -343,6 +351,7 @@ impl<K, V, S> FromParallelIterator<(K, V)> for IndexMap<K, V, S>
343351
}
344352
}
345353

354+
/// Requires crate feature `"rayon"`.
346355
impl<K, V, S> ParallelExtend<(K, V)> for IndexMap<K, V, S>
347356
where K: Eq + Hash + Send,
348357
V: Send,
@@ -357,6 +366,7 @@ impl<K, V, S> ParallelExtend<(K, V)> for IndexMap<K, V, S>
357366
}
358367
}
359368

369+
/// Requires crate feature `"rayon"`.
360370
impl<'a, K: 'a, V: 'a, S> ParallelExtend<(&'a K, &'a V)> for IndexMap<K, V, S>
361371
where K: Copy + Eq + Hash + Send + Sync,
362372
V: Copy + Send + Sync,

src/rayon/set.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! You will rarely need to interact with this module directly unless you need to name one of the
44
//! iterator types.
5+
//!
6+
//! Requires crate feature `"rayon"`.
57
68
use super::collect;
79
use super::rayon::prelude::*;
@@ -17,6 +19,7 @@ use IndexSet;
1719

1820
type Bucket<T> = ::Bucket<T, ()>;
1921

22+
/// Requires crate feature `"rayon"`.
2023
impl<T, S> IntoParallelIterator for IndexSet<T, S>
2124
where T: Hash + Eq + Send,
2225
S: BuildHasher,
@@ -60,6 +63,7 @@ impl<T: Send> IndexedParallelIterator for IntoParIter<T> {
6063
}
6164

6265

66+
/// Requires crate feature `"rayon"`.
6367
impl<'a, T, S> IntoParallelIterator for &'a IndexSet<T, S>
6468
where T: Hash + Eq + Sync,
6569
S: BuildHasher,
@@ -109,6 +113,7 @@ impl<'a, T: Sync> IndexedParallelIterator for ParIter<'a, T> {
109113
}
110114

111115

116+
/// Requires crate feature `"rayon"`.
112117
impl<T, S> IndexSet<T, S>
113118
where T: Hash + Eq + Sync,
114119
S: BuildHasher + Sync,
@@ -396,6 +401,7 @@ impl<'a, T, S1, S2> ParallelIterator for ParUnion<'a, T, S1, S2>
396401
}
397402

398403

404+
/// Requires crate feature `"rayon"`.
399405
impl<T, S> IndexSet<T, S>
400406
where T: Hash + Eq + Send,
401407
S: BuildHasher + Send,
@@ -430,6 +436,7 @@ impl<T, S> IndexSet<T, S>
430436
}
431437

432438

439+
/// Requires crate feature `"rayon"`.
433440
impl<T, S> FromParallelIterator<T> for IndexSet<T, S>
434441
where T: Eq + Hash + Send,
435442
S: BuildHasher + Default + Send,
@@ -447,6 +454,7 @@ impl<T, S> FromParallelIterator<T> for IndexSet<T, S>
447454
}
448455
}
449456

457+
/// Requires crate feature `"rayon"`.
450458
impl<T, S> ParallelExtend<(T)> for IndexSet<T, S>
451459
where T: Eq + Hash + Send,
452460
S: BuildHasher + Send,
@@ -460,6 +468,7 @@ impl<T, S> ParallelExtend<(T)> for IndexSet<T, S>
460468
}
461469
}
462470

471+
/// Requires crate feature `"rayon"`.
463472
impl<'a, T: 'a, S> ParallelExtend<&'a T> for IndexSet<T, S>
464473
where T: Copy + Eq + Hash + Send + Sync,
465474
S: BuildHasher + Send,

0 commit comments

Comments
 (0)