aboutsummaryrefslogtreecommitdiff
path: root/src/iter/extend.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/iter/extend.rs')
-rw-r--r--src/iter/extend.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/iter/extend.rs b/src/iter/extend.rs
index 1769d47..a264528 100644
--- a/src/iter/extend.rs
+++ b/src/iter/extend.rs
@@ -500,6 +500,16 @@ impl ParallelExtend<String> for String {
}
}
+/// Extends a string with boxed strings from a parallel iterator.
+impl ParallelExtend<Box<str>> for String {
+ fn par_extend<I>(&mut self, par_iter: I)
+ where
+ I: IntoParallelIterator<Item = Box<str>>,
+ {
+ extend!(self, par_iter, string_extend);
+ }
+}
+
/// Extends a string with string slices from a parallel iterator.
impl<'a> ParallelExtend<Cow<'a, str>> for String {
fn par_extend<I>(&mut self, par_iter: I)