]> git.lizzy.rs Git - rust.git/commit
collections: Reorder slice methods to improve API docs
authorUlrik Sverdrup <root@localhost>
Tue, 19 May 2015 22:43:46 +0000 (00:43 +0200)
committerUlrik Sverdrup <root@localhost>
Wed, 20 May 2015 10:27:09 +0000 (12:27 +0200)
commit77dcaa5c58d192e096ece0cb7f5f9d9b62d4f897
tree6e3d729b88c52535cf5800c7ccebe092a1db3ca8
parent93701b399b2d3cbb056c1eaaf1fba421585bb2bd
collections: Reorder slice methods to improve API docs

We have an evolutionary history whose traces are still visible in the
slice docs today.

Some heuristics:

* Group method and method_mut together
* Group method and method_by together
* Group by use case, here we have roughly:

  Basic interrogators (len)
  Mutation (swap)
  Iterators (iter)
  Segmentation (split)
  Searching (contains)
  Permutations (permutations)
  Misc (clone_from_slice)
src/libcollections/slice.rs