Skip to content

Commit

Permalink
Rollup merge of #129439 - okaneco:vec_string_lossy, r=Noratrieb
Browse files Browse the repository at this point in the history
Implement feature `string_from_utf8_lossy_owned` for lossy conversion from `Vec<u8>` to `String` methods

Accepted ACP: rust-lang/libs-team#116
Tracking issue: #129436

Implement feature for lossily converting from `Vec<u8>` to `String`
- Add `String::from_utf8_lossy_owned`
- Add `FromUtf8Error::into_utf8_lossy`

---
Related to #64727, but unsure whether to mark it "fixed" by this PR.
That issue partly asks for in-place replacement of the original allocation. We fulfill the other half of that request with these functions.

closes #64727
  • Loading branch information
matthiaskrgr authored Sep 15, 2024
2 parents bc3609f + d14e6f3 commit 9cebc1d
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 9cebc1d

Please sign in to comment.