about summary refs log tree commit diff
path: root/src/libsyntax/owned_slice.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-22 16:05:39 -0700
committerbors <bors@rust-lang.org>2016-03-22 16:05:39 -0700
commit0dcc413e42f15f4fc51a0ca88a99cc89454ec43d (patch)
tree57021614c7aaf786e43691971c742907fc903929 /src/libsyntax/owned_slice.rs
parente3f2dfdececa8053e652eb0fb286db9aef0f82e6 (diff)
parent48d5fe9ec560b53b1f5069219b0d62015e1de5ba (diff)
downloadrust-0dcc413e42f15f4fc51a0ca88a99cc89454ec43d.tar.gz
rust-0dcc413e42f15f4fc51a0ca88a99cc89454ec43d.zip
Auto merge of #32204 - alexcrichton:redesign-char-encoding-types, r=aturon
std: Change `encode_utf{8,16}` to return iterators

Currently these have non-traditional APIs which take a buffer and report how
much was filled in, but they're not necessarily ergonomic to use. Returning an
iterator which *also* exposes an underlying slice shouldn't result in any
performance loss as it's just a lazy version of the same implementation, and
it's also much more ergonomic!

cc #27784
Diffstat (limited to 'src/libsyntax/owned_slice.rs')
0 files changed, 0 insertions, 0 deletions