mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 15:19:44 +00:00
3724105cea
This constructor maps to `String::from_utf8_lossy` or `String::from_utf16_lossy`. It's useful in situations where producing a slightly garbled string on invalid Unicode data is preferable to crashing the process, e.g. when passing error messages from C++ to Rust. |
||
---|---|---|
.. | ||
ffi | ||
ui | ||
BUCK | ||
BUILD | ||
compiletest.rs | ||
cxx_gen.rs | ||
cxx_string.rs | ||
test.rs | ||
unique_ptr.rs |