Tracking Issue for explicit-endian String::from_utf16 #116258
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(str_from_utf16_endian)]
This is a tracking issue for versions of
String::from_utf16
which take&[u8]
and use a specific endianness.Public API
Steps / History
Unresolved Questions
from_utf16le
,from_utf16_le
,from_le_utf16
,from_le_utf16_bytes
, and other such combinations.with_capacity
+push
implementation used forfrom_utf16
whilecollect
doesn't reserve capacity? (Collecting into a Result<Vec<_>> doesn't reserve the capacity in advance #48994)FromUtf16Error
currently displays as"invalid utf-16: lone surrogate found"
which isn't correct for an error due to odd byte length.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: