aboutsummaryrefslogtreecommitdiff
path: root/src/stream/select_all.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/select_all.rs')
-rw-r--r--src/stream/select_all.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stream/select_all.rs b/src/stream/select_all.rs
index d257689..2547993 100644
--- a/src/stream/select_all.rs
+++ b/src/stream/select_all.rs
@@ -131,3 +131,11 @@ impl<St: Stream + Unpin> FromIterator<St> for SelectAll<St> {
select_all(iter)
}
}
+
+impl<St: Stream + Unpin> Extend<St> for SelectAll<St> {
+ fn extend<T: IntoIterator<Item = St>>(&mut self, iter: T) {
+ for st in iter {
+ self.push(st)
+ }
+ }
+}