rust/src/liballoc
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
..
arc.rs Updating docs for std::sync::Weak #29377 2017-04-12 00:19:38 -04:00
boxed.rs More methods for str boxes. 2017-04-24 17:51:49 -04:00
boxed_test.rs Direct conversions between slices and boxes. 2017-02-06 18:53:13 -05:00
Cargo.toml rustbuild: Add support for crate tests + doctests 2016-05-12 08:52:20 -07:00
heap.rs cache attributes of items from foreign crates 2017-04-22 21:00:50 +03:00
lib.rs Auto merge of #41258 - clarcharr:str_box_extras, r=Kimundi 2017-04-26 06:18:17 +00:00
macros.rs Add {into,from}_raw to Rc and Arc 2016-11-05 00:50:41 +00:00
oom.rs drop an unnecessary newline 2016-11-10 23:44:15 -05:00
raw_vec.rs Specialize Vec::from_elem<u8> to use calloc or memset 2017-04-15 09:01:56 -07:00
rc.rs Auto merge of #41437 - cuviper:remove-unstable-deprecated, r=alexcrichton 2017-04-23 02:13:55 +00:00
str.rs More methods for str boxes. 2017-04-24 17:51:49 -04:00