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

Make AdditiveIterator and MultiplicativeIterator extensible #23293

Merged
merged 2 commits into from
Apr 8, 2015

Commits on Apr 6, 2015

  1. Make AdditiveIterator and MultiplicativeIterator extensible

    Previously it could not be implemented for types outside `libcore/iter.rs` due
    to coherence issues.
    tbu- committed Apr 6, 2015
    Configuration menu
    Copy the full SHA
    8842760 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2015

  1. Make sum and product inherent methods on Iterator

    In addition to being nicer, this also allows you to use `sum` and `product` for
    iterators yielding custom types aside from the standard integers.
    
    Due to removing the `AdditiveIterator` and `MultiplicativeIterator` trait, this
    is a breaking change.
    
    [breaking-change]
    tbu- committed Apr 7, 2015
    Configuration menu
    Copy the full SHA
    97f24a8 View commit details
    Browse the repository at this point in the history