Tags: ishacker/rust
Tags
Auto merge of rust-lang#32204 - alexcrichton:redesign-char-encoding-t… …ypes, 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 rust-lang#27784
PreviousNext