rust/src/liballoc
Ralf Jung e6510babc7
Rollup merge of #72584 - CAD97:stabilize-58957, r=dtolnay
Stabilize vec::Drain::as_slice

and add `AsRef<[T]> for Drain<'_, T>`.

Tracking issue: #58957. Does not stabilize `slice::IterMut::as_slice` yet. cc @cuviper
This PR proposes stabilizing just the `vec::Drain::as_slice` part of that tracking issue.

My ultimate goal here: being able to use `for<T, I: Iterator<Item=T> + AsRef<[T]>> I` to refer to `vec::IntoIter`, `vec::Drain`, and eventually `array::IntoIter`, as an approximation of the set of by-value iterators that can be "previewed" as by-ref iterators. (Actually expressing that as a trait requires GAT.)
2020-06-15 09:57:26 +02:00
..
alloc liballoc tests: Miri supports threads now 2020-05-01 11:16:38 +02:00
benches Introduce BTreeMap benches of iter itself 2020-04-25 00:05:10 +02:00
collections Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00
prelude Format liballoc with rustfmt 2019-11-29 20:25:07 -08:00
raw_vec Tiny Vecs are dumb. 2020-05-18 15:26:59 +10:00
rc Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
sync Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
tests Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
Cargo.toml bump rand to fix Miri failures 2019-08-04 14:50:26 +02:00
alloc.rs Stop importing integer modules in liballoc 2020-04-05 11:22:01 +02:00
borrow.rs Format the world 2019-12-22 17:42:47 -05:00
boxed.rs Rollup merge of #72499 - mendess:master, r=dtolnay 2020-05-30 13:45:06 +02:00
fmt.rs grammar: dealing-with 2020-05-06 19:01:27 -04:00
lib.rs Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00
macros.rs make `vec![,]` uncompilable 2020-04-14 10:27:55 +03:00
raw_vec.rs Rename some identifiers in `RawVec` and `libarena`. 2020-06-09 07:55:35 +10:00
rc.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
slice.rs Explain why we shouldn't add inline attr to into_vec 2020-04-19 01:03:43 +09:00
str.rs Replace max/min_value() with MAX/MIN assoc consts 2020-04-03 09:33:10 +02:00
string.rs Add Extend::{extend_one,extend_reserve} 2020-05-29 17:05:17 -07:00
sync.rs Bump to 1.46 2020-06-03 15:27:51 -04:00
task.rs Add Arc::{incr,decr}_strong_count 2020-05-07 17:18:25 +02:00
tests.rs Stop importing integer modules in liballoc 2020-04-05 11:22:01 +02:00
vec.rs Rollup merge of #72584 - CAD97:stabilize-58957, r=dtolnay 2020-06-15 09:57:26 +02:00