rust/library/alloc/src
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
..
alloc Reformat use declarations. 2024-07-29 08:26:52 +10:00
boxed Reformat use declarations. 2024-07-29 08:26:52 +10:00
collections Rollup merge of #130101 - RalfJung:const-cleanup, r=fee1-dead 2024-09-12 19:03:41 +02:00
ffi Reformat use declarations. 2024-07-29 08:26:52 +10:00
raw_vec Polymorphize RawVec 2024-08-09 20:06:26 -04:00
rc Reformat use declarations. 2024-07-29 08:26:52 +10:00
slice Reformat use declarations. 2024-07-29 08:26:52 +10:00
sync Reformat use declarations. 2024-07-29 08:26:52 +10:00
testing Reformat use declarations. 2024-07-29 08:26:52 +10:00
vec Rollup merge of #130061 - theemathas:box_vec_non_null, r=MarkSimulacrum,workingjubilee 2024-09-15 12:14:55 +10:00
alloc.rs make basic allocation functions track_caller in Miri for nicer backtraces 2024-09-11 22:38:21 +02:00
borrow.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
boxed.rs Rollup merge of #130061 - theemathas:box_vec_non_null, r=MarkSimulacrum,workingjubilee 2024-09-15 12:14:55 +10:00
fmt.rs std::fmt::FormatterFn -> std::fmt::FromFn 2024-08-12 18:33:30 +01:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs also stabilize const_refs_to_cell 2024-09-15 10:20:47 +02:00
macros.rs Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
raw_vec.rs add FIXME(const-hack) 2024-09-08 23:08:40 +02:00
rc.rs replace placeholder version 2024-09-03 20:54:02 +01:00
slice.rs Add missing #[allow(missing_docs)] on hack functions in alloc 2024-09-09 13:44:09 +02:00
str.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
string.rs Rollup merge of #129439 - okaneco:vec_string_lossy, r=Noratrieb 2024-09-15 16:01:36 +02:00
sync.rs replace placeholder version 2024-09-03 20:54:02 +01:00
task.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
tests.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00