rust/library/std/src/sys/os_str
Thalia Archibald a8d78fec52 Specialize OsString::push for strings
When concatenating two WTF-8 strings, surrogate pairs at the boundaries
need to be joined. However, since UTF-8 strings cannot contain surrogate
halves, this check can be skipped when one string is UTF-8. Specialize
`OsString::push` to use a more efficient concatenation in this case.

Unfortunately, a specialization for `T: AsRef<str>` conflicts with
`T: AsRef<OsStr>`, so stamp out string types with a macro.
2025-02-28 13:42:31 -08:00
..
bytes std: move OS String implementation into sys 2024-01-15 16:26:25 +01:00
bytes.rs Specialize OsString::push for strings 2025-02-28 13:42:31 -08:00
mod.rs forbid(unsafe_op_in_unsafe_fn) in sys/os_str 2024-07-17 05:52:38 +00:00
wtf8.rs Specialize OsString::push for strings 2025-02-28 13:42:31 -08:00