[][src]Module resultit::flatten_results

Iterator adapter to flatten an Iterator<Item> where: Item = Result<IntoIterator,_>. See documentation for FlattenResults for details.

Based on solution proposed by redditor earthengine in this post and on the rust playground.

Traits

FlattenResults

Iterator adapter to flatten an Iterator<Item> where: Item = Result<IntoIterator,_>. This is needed because the standard flatten() adapter only works on an iterator of iterators and does not work on an iterator of results.

Functions

transform

Module-level free-standing function analog to flatten_results() that can be called without using the FlattenResults trait. It is more idiomatic to use the iterator adapter and call flatten_results() instead.