Hash and deduplicate the errors in the error stream. The resulting error stream has an arbitrary order.
(mut self)
| 211 | /// Hash and deduplicate the errors in the error stream. |
| 212 | /// The resulting error stream has an arbitrary order. |
| 213 | pub fn hash_deduplicate(mut self) -> Self { |
| 214 | let set = self.0.drain(..).collect::<HashSet<_>>(); |
| 215 | self.0.extend(set); |
| 216 | self |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | impl<E> IntoIterator for ErrorStream<E> { |