resiter
A collection of helpful iterator adaptors for iterating over Result<T, E>
.
Examples
Here go some examples what you can do with the library.
- Altering T in
Iterator<Item = Result<T, E>>
iter.map // stdlib
iter.map_ok // resiter
- Altering T in
Iterator<Item = Result<T, E>>
with a function that might fail:
iter.map // stdlib
iter.and_then_ok // resiter
- Unpacking T in
Iterator<Item = Result<Option<T>, E>>
iter.map // stdlib
iter.inner_ok_or_else // resiter
- Executing code for each error in
Iterator<Item = Result<T, E>>
iter.map ) // stdlib
iter.map // stdlib
iter.on_err // resiter
License
MPL 2.0