rust/library/alloc
Matthias Krüger df3cf91b63
Rollup merge of #129439 - okaneco:vec_string_lossy, r=Noratrieb
Implement feature `string_from_utf8_lossy_owned` for lossy conversion from `Vec<u8>` to `String` methods

Accepted ACP: https://github.com/rust-lang/libs-team/issues/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
2024-09-15 16:01:36 +02:00
..
benches Ban non-array SIMD 2024-09-09 19:39:43 -07:00
src Rollup merge of #129439 - okaneco:vec_string_lossy, r=Noratrieb 2024-09-15 16:01:36 +02:00
tests stabilize const_mut_refs 2024-09-15 09:51:32 +02:00
Cargo.toml Update compiler-builtins to 0.1.125 2024-09-05 09:31:17 -07:00