Closed rageagainsthepc closed 1 year ago
Use rust's str instead of CxxString for rust interface functions. Let the C++ code handle conversions from std::string_view to rust::Str. Furthermore, always pass std::string_view by value.
str
CxxString
std::string_view
rust::Str
Use rust's
str
instead ofCxxString
for rust interface functions. Let the C++ code handle conversions fromstd::string_view
torust::Str
. Furthermore, always passstd::string_view
by value.