You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my understanding, PeekingNext is a iterator from which we can obtain the reference to the next element. Currently this trait requires peeking_next function, that consumes the next element when the predicate is satisfied. But what if I want the peek behavior, in which the next element is not consumed? I think it is reasonable to provide such trait method too. Is there a reason that there isn't?