(&mut self, result: Result<T, ES>)
| 180 | #[inline(never)] // don't optimize this too much |
| 181 | #[cold] |
| 182 | fn unpack<T, ES: Into<ErrorStream<E>>>(&mut self, result: Result<T, ES>) -> Option<T> { |
| 183 | match result { |
| 184 | Ok(value) => Some(value), |
| 185 | Err(error) => { |
| 186 | self.0.extend(error.into().0); |
| 187 | None |
| 188 | } |
| 189 | } |
| 190 | } |
| 191 | } |
| 192 | impl<E: fmt::Display> fmt::Display for ErrorStream<E> { |
| 193 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |