]> git.lizzy.rs Git - rust.git/commit
Second pass stabilization: slice
authorAaron Turon <aturon@mozilla.com>
Thu, 18 Dec 2014 04:50:16 +0000 (20:50 -0800)
committerAaron Turon <aturon@mozilla.com>
Tue, 30 Dec 2014 20:02:22 +0000 (12:02 -0800)
commit4f863a338e0a7c33f81a8ac138103f1a0e8b33c5
treed4c5e6fa5c8cf9468d24b8927b94307425b1a2c5
parent9d919d2302b5df42e3bf8979560e0da21f4b2bad
Second pass stabilization: slice

This commit takes a second pass through the `slice` module to
stabilize its API. The changes are as follows:

**Stable**:

* `as_mut_slice`
* `as_ptr`, `as_mut_ptr`
* `binary_search_by` (was: `binary_search`)
* `binary_search` (was: `binary_search_elem`)
* `chunks`, `chunks_mut`
* `contains`
* `ends_with`
* `first`, `first_mut` (was: `head`)
* `get_unchecked`, `get_unchecked_mut` (was: `unsafe_get`)
* `get`
* `is_empty`
* `iter`, `iter_mut`
* `len`
* `reverse`
* `sort_by`
* `sort`
* `split_at`, `split_at_mut`
* `split_mut`, `splitn_mut`, `rsplitn_mut`
* `split`, `splitn`, `rsplitn`
* `starts_with`
* `swap`
* `to_vec`
* `windows`

**Deprecated**:

* `head`, `head_mut` (renamed as above)
* `unsafe_get`, `unsafe_mut` (renamed as above)
* `binary_search_elem` (renamed as above)
* `partitioned`, deprecated in favor of a new, more
  general iterator consumer called `partition`.
* `BinarySearchResult`, deprecated in favor of `Result<uint, uint>`

[breaking-change]
src/libcollections/slice.rs
src/libcore/slice.rs
src/rust-installer