summaryrefslogtreecommitdiff
path: root/src/stream_map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream_map.rs')
-rw-r--r--src/stream_map.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/stream_map.rs b/src/stream_map.rs
index 80a521e..2159804 100644
--- a/src/stream_map.rs
+++ b/src/stream_map.rs
@@ -585,6 +585,15 @@ where
}
}
+impl<K, V> Extend<(K, V)> for StreamMap<K, V> {
+ fn extend<T>(&mut self, iter: T)
+ where
+ T: IntoIterator<Item = (K, V)>,
+ {
+ self.entries.extend(iter);
+ }
+}
+
mod rand {
use std::cell::Cell;