(
results: impl IntoIterator<Item = Result<T, E>>,
)
| 206 | // Fallible iterator helpers |
| 207 | |
| 208 | pub(crate) fn try_collect<T, E>( |
| 209 | results: impl IntoIterator<Item = Result<T, E>>, |
| 210 | ) -> Result<Vec<T>, E> { |
| 211 | results.into_iter().collect() |
| 212 | } |
| 213 | |
| 214 | pub(crate) fn collect_until_error<T, E>( |
| 215 | results: impl IntoIterator<Item = Result<T, E>>, |