rust/src/libcollections
bors dad9814eb0 Auto merge of #41258 - clarcharr:str_box_extras, r=Kimundi
More methods for str boxes. (reduce Box<[u8]> ↔ Box<str> transmutes)

This is a follow-up to #41096 that adds safer methods for converting between `Box<str>` and `Box<[u8]>`. They're gated under a different feature from the `&mut str` methods because they may be too niche to include in public APIs, although having them internally helps reduce the number of transmutes the standard library uses.

What's added:

* `From<Box<str>> for Box<[u8]>`
* `<Box<str>>::into_boxed_bytes` (just calls `Into::into`)
* `alloc::str` (new module)
* `from_boxed_utf8` and `from_boxed_utf8_unchecked`, defined in `alloc:str`, exported in `collections::str`
* exports `from_utf8_mut` in `collections::str` (missed from previous PR)
2017-04-26 06:18:17 +00:00
..
benches Implement feature sort_unstable 2017-03-21 20:46:20 +01:00
btree Auto merge of #41437 - cuviper:remove-unstable-deprecated, r=alexcrichton 2017-04-23 02:13:55 +00:00
tests Add Splice forget test 2017-04-24 09:49:29 -05:00
binary_heap.rs Auto merge of #41437 - cuviper:remove-unstable-deprecated, r=alexcrichton 2017-04-23 02:13:55 +00:00
borrow.rs Add ToOwned::clone_into (unstable as toowned_clone_into) 2017-04-12 17:21:15 -07:00
Cargo.toml Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
fmt.rs Rollup merge of #40241 - Sawyer47:fix-39997, r=alexcrichton 2017-03-19 20:51:06 -04:00
lib.rs Auto merge of #41258 - clarcharr:str_box_extras, r=Kimundi 2017-04-26 06:18:17 +00:00
linked_list.rs Fix invalid linkage 2017-04-22 13:25:14 +02:00
macros.rs Panic on errors in format! or <T: Display>::to_string 2017-03-01 23:47:59 +01:00
range.rs Apply clippy's doc_markdown improvements to libcollections 2017-04-10 05:53:10 +02:00
slice.rs Add Vec::splice and String::splice 2017-04-23 19:19:38 -05:00
str.rs More methods for str boxes. 2017-04-24 17:51:49 -04:00
string.rs Auto merge of #41258 - clarcharr:str_box_extras, r=Kimundi 2017-04-26 06:18:17 +00:00
vec.rs Rollup merge of #41535 - steveklabnik:gh37746, r=alexcrichton 2017-04-25 23:06:01 -04:00
vec_deque.rs Fix invalid linkage 2017-04-22 13:25:14 +02:00