about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-08-27 00:41:13 +0000
committerbors <bors@rust-lang.org>2015-08-27 00:41:13 +0000
commitfd302a95e1197e5f8401ecaa15f2cb0f81c830c3 (patch)
treef067678d29ba74bb76bea9397da4b06ed975ea87 /src/libstd/sys/unix/stack_overflow.rs
parent80b971a9b86cf56eab5a6f707107175d4bf2bbe1 (diff)
parent6174b8d726ed5764694e5404329d8b5e66517ed5 (diff)
downloadrust-fd302a95e1197e5f8401ecaa15f2cb0f81c830c3.tar.gz
rust-fd302a95e1197e5f8401ecaa15f2cb0f81c830c3.zip
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 
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions