-
Notifications
You must be signed in to change notification settings - Fork 329
Open
Labels
fallible-iteratorIterator of results/optionsIterator of results/options
Description
.try_collect()
is for turning Iterator<Result<T>>
into Result<Iterator<T>>
. Can you create an equivalent method that turns Iterator<Option<T>>
into Option<Iterator<T>>
? Or perhaps implement it as a generic, as part of try_collect()
?
The use case is for creating programs that never crash at runtime (where error conditions are passed to the logs, and Result converted to Option, and program is continuing without interruption).
Metadata
Metadata
Assignees
Labels
fallible-iteratorIterator of results/optionsIterator of results/options