Second pass stabilization: vec

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

**Stable**:

* `dedup`
* `from_raw_parts`
* `insert`
* `into_iter`
* `is_empty`
* `remove`
* `reserve_exact`
* `reserve`
* `retain`
* `swap_remove`
* `truncate`

**Deprecated**:

* `from_fn`, `from_elem`, `grow_fn` and `grow`, all deprecated in
  favor of iterators. See https://github.com/rust-lang/rfcs/pull/509

* `partition`, `partitioned`, deprecated in favor of a new, more
  general iterator consumer called `partition`.

* `unzip`, deprecated in favor of a new, more general iterator
  consumer called `unzip`.

A few remaining methods are left at experimental status.

[breaking-change]
This commit is contained in:
Aaron Turon 2014-12-16 23:44:43 -08:00
parent 8a5057af2e
commit 9d919d2302
2 changed files with 940 additions and 1025 deletions

File diff suppressed because it is too large Load Diff

View File

@ -158,6 +158,7 @@ pub use alloc::rc;
pub use core_collections::slice;
pub use core_collections::str;
pub use core_collections::string;
#[stable]
pub use core_collections::vec;
pub use unicode::char;