Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PeekingNext transitively over mutable references. #643

Merged
merged 1 commit into from Jun 15, 2023

Commits on Sep 12, 2022

  1. 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).
    olson-sean-k committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    590fdef View commit details
    Browse the repository at this point in the history