rust/src/libstd/sys/common
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
..
backtrace.rs Register new snapshots 2015-08-11 15:11:13 -07:00
condvar.rs Use const fn to abstract away the contents of UnsafeCell & friends. 2015-05-27 11:19:03 +03:00
io.rs Add specializations of read_to_end for Stdin, TcpStream and File, 2015-07-15 21:30:18 +01:00
mod.rs Register new snapshots 2015-08-11 15:11:13 -07:00
mutex.rs Use const fn to abstract away the contents of UnsafeCell & friends. 2015-05-27 11:19:03 +03:00
net.rs Add Send/Sync traits on LookupHost struct 2015-08-23 22:27:33 +02:00
poison.rs Register new snapshots 2015-08-11 15:11:13 -07:00
remutex.rs std: Add issues to all unstable features 2015-08-15 18:09:17 -07:00
rwlock.rs Use const fn to abstract away the contents of UnsafeCell & friends. 2015-05-27 11:19:03 +03:00
thread.rs Remove morestack support 2015-08-10 16:35:44 -07:00
thread_info.rs Register new snapshots 2015-08-11 15:11:13 -07:00
thread_local.rs std: Add issues to all unstable features 2015-08-15 18:09:17 -07:00
wtf8.rs Refactor low-level UTF-16 decoding. 2015-08-23 00:28:56 +02:00