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
Implement PeekingNext transitively over mutable references.
This change applies patterns used for the standard `Iterator` trait to
the `PeekingNext` trait. Generic methods require `Self: Sized` and
`PeekingNext` is now transitively implemented over mutable references.
This allows generic code to easily accept owned and mutably borrowed
types that implement `PeekingNext`. This also makes `PeekingNext`
object-safe (though this has little utility today).
0 commit comments