I need to interrupt an
Iterator<Result<O, E>> if one of results is an
Err. Can I do this?
I am looking for an iterator function, something like this:
Iterator<Result<O, E>> -> Result<Iterator<O>, E>.
I know that I can use the function
collect, but it makes new Vec (
What if I don't need to allocate a Vec, but just iterate further?