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 O(1) slice::Iter{,Mut} methods. #24701

Merged
merged 3 commits into from
Apr 28, 2015
Merged

Commits on Apr 22, 2015

  1. Implement O(1) slice::Iter methods.

    Instead of using the O(n) defaults, define O(1) shortcuts.
    Stebalien committed Apr 22, 2015
    Configuration menu
    Copy the full SHA
    de8c79a View commit details
    Browse the repository at this point in the history
  2. Address comments.

    1. Use next_back for last.
    2. Use slices for computing nth. It might be possible to use the same
    code for both the mut/const case but I don't know how that will play
    with compiler optimizations.
    Stebalien committed Apr 22, 2015
    Configuration menu
    Copy the full SHA
    50c6c6c View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2015

  1. Configuration menu
    Copy the full SHA
    e129b92 View commit details
    Browse the repository at this point in the history