pub struct TryFlatMap<I>(_);
Expand description
Utility wrapper to flatten paginated results
When flattening paginated results, it’s most convenient to produce an iterator where the Result
is present in each item. This provides items()
which can wrap an stream of Result<Page, Err>
and produce a stream of Result<Item, Err>
.
Create a TryFlatMap
that wraps the input
Produce a new Stream
by mapping this stream with map
then flattening the result
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.