rust/src/libcore
bors fd302a95e1 Auto merge of #27808 - SimonSapin:utf16decoder, r=alexcrichton
* Rename `Utf16Items` to `Utf16Decoder`. "Items" is meaningless.
* Generalize it to any `u16` iterator, not just `[u16].iter()`
* Make it yield `Result` instead of a custom `Utf16Item` enum that was isomorphic to `Result`. This enable using the `FromIterator for Result` impl.
* Replace `Utf16Item::to_char_lossy` with a `Utf16Decoder::lossy` iterator adaptor.

This is a [breaking change], but only for users of the unstable `rustc_unicode` crate.

I’d like this functionality to be stabilized and re-exported in `std` eventually, as the "low-level equivalent" of `String::from_utf16` and `String::from_utf16_lossy` like #27784 is the low-level equivalent of #27714.

CC @aturon, @alexcrichton
2015-08-27 00:41:13 +00:00
..
fmt core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
hash Reduce libcore/liballoc's dependence on pointer sizes 2015-08-15 19:19:13 +12:00
num Auto merge of #27871 - alexcrichton:stabilize-libcore, r=aturon 2015-08-22 09:59:07 +00:00
prelude core: Stabilize prelude::v1 2015-08-17 19:35:52 -07:00
str Auto merge of #27474 - bluss:twoway-reverse, r=brson 2015-08-18 02:02:57 +00:00
sync core: Move atomic into a new sync module 2015-08-17 14:03:32 -07:00
any.rs Any docs: as_ref doesn't exist anymore 2015-08-26 13:59:39 -04:00
array.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
borrow.rs Move the Borrow and BorrowMut traits to libcore. 2015-08-22 13:58:39 +02:00
cell.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
char.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
clone.rs core: Split apart the global core feature 2015-06-17 09:06:59 -07:00
cmp_macros.rs std: Remove #[old_orphan_check] from PartialEq 2015-03-31 13:39:14 -07:00
cmp.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
convert.rs core: Split apart the global core feature 2015-06-17 09:06:59 -07:00
default.rs Remove doc-comment default::Default imports 2015-04-22 09:42:36 -04:00
intrinsics.rs Rollup merge of #27904 - tshepang:nit, r=nikomatsakis 2015-08-22 19:15:42 -04:00
iter.rs Correct iterator adaptor Chain 2015-08-25 19:07:24 +02:00
lib.rs Move the Borrow and BorrowMut traits to libcore. 2015-08-22 13:58:39 +02:00
macros.rs std: Remove the curious inner module 2015-07-29 14:18:24 -07:00
marker.rs remove untrue doc from marker.rs 2015-08-17 16:37:48 -04:00
mem.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
nonzero.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
ops.rs Auto merge of #27823 - eefriedman:float-dep-core, r=alexcrichton 2015-08-18 04:23:25 +00:00
option.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
panicking.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
ptr.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
raw.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
result.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
simd_old.rs switch core::simd to repr(simd) and deprecate it. 2015-08-17 14:41:37 -07:00
simd.rs Shim some of the old std::simd functionality. 2015-08-17 14:48:43 -07:00
slice.rs core: Fill out issues for unstable features 2015-08-15 18:09:16 -07:00
tuple.rs std: Create separate docs for the primitives 2015-07-20 13:18:06 -07:00