rust/src/liballoc
Mazdak Farrokhzad 006440a7fe
Rollup merge of #61447 - scottmcm:vec-vecdeque, r=sfackler
Add some Vec <-> VecDeque documentation

These are more than just `.into_iter().collect()`, so talk about some of their nuances.

For VecDeque -> Vec I'm trying to intentionally not write a guarantee for people making their own `Vec`s, since the rules are more complicated than I think we want to commit to forever.

The "Vec -> VecDeque doesn't reallocate" guarantee seems reasonable, though.  (And I'm intentionally ambiguous about when it's O(1) instead of O(n).)
2019-06-16 06:05:12 +02:00
..
benches improve worst-case performance of BTreeSet difference and intersection 2019-03-29 12:18:20 +01:00
collections Remove the questionably-useful example 2019-06-11 21:13:48 -07:00
prelude Stabilize the alloc crate. 2019-04-12 20:07:30 +02:00
tests add test checking that Vec push/pop does not invalidate pointers 2019-05-25 10:11:00 +02:00
alloc.rs Turn #[allocator] into a built-in attribute and rename it to #[rustc_allocator] 2019-06-08 23:55:25 +03:00
borrow.rs warn(missing_docs) in liballoc, and add missing docs 2019-04-15 16:35:50 +02:00
boxed.rs Update src/liballoc/boxed.rs 2019-05-27 22:42:50 +03:00
boxed_test.rs liballoc: revert nested imports style changes. 2019-02-03 08:27:44 +01:00
Cargo.toml Update the compiler_builtins crate 2019-05-17 07:17:15 -07:00
fmt.rs Make clear that format padding doesn't work for Debug 2019-04-13 15:39:49 +10:00
lib.rs Turn #[allocator] into a built-in attribute and rename it to #[rustc_allocator] 2019-06-08 23:55:25 +03:00
macros.rs Hygienize macros in the standard library 2019-06-12 20:27:29 +03:00
raw_vec.rs avoid materializing unintialized Boxes in RawVec 2019-05-27 11:15:31 +03:00
rc.rs Auto merge of #61421 - vorner:string-in-rc-into-raw-docs, r=RalfJung 2019-06-14 12:37:28 +00:00
slice.rs Box::into_vec: use Box::into_raw instead of mem::forget 2019-05-27 22:40:28 +02:00
str.rs Add an unusual-conversion example to to_uppercase 2019-06-01 00:23:26 -07:00
string.rs Revert "Add implementations of last in terms of next_back on a bunch of DoubleEndedIterators." 2019-05-22 14:09:34 -07:00
sync.rs docs: Use String in Rc::into_raw examples 2019-06-13 13:18:59 +02:00
vec.rs Succinctify splice docs 2019-06-01 11:26:08 +02:00