Le 13/09/2013 23:03, Simon Sapin a écrit :
* Make the output generic in the low-level API by having StringWriter instead of ~str
This has the nice side effect to let Servo use a different string type for decoding, but not for encoding. To fix the latter, the input of encoding could be generic as well.
Every encoder other than UTF-8 only needs .iter_chars(), or even a Iterator<char>. It’s only the UTF-8 encoding that wants to specialize str-as-input to just copy without going through 'char' at all.
Or is it too much, should we just stick with non-generic str? -- Simon Sapin _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev