I have an Iterator<Item=Result<A, E>>, a predicate P for A and a default Err. I want to find the first element that is either an Ok(a) where a satisfies P or an Err, and then return either, or if neither can be found, return the default Err.
Are there any Iterator methods that can help, or should I just loop over elements?