We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
String::to_string_lossy
1 parent 92a8203 commit 958abd0Copy full SHA for 958abd0
src/string.rs
@@ -55,7 +55,11 @@ impl String {
55
///
56
/// Any non-Unicode sequences are replaced with [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD].
57
58
+ /// This method returns [`StdString`] instead of [`Cow<'_, str>`] because lifetime cannot be
59
+ /// bound to a weak Lua object.
60
+ ///
61
/// [U+FFFD]: std::char::REPLACEMENT_CHARACTER
62
+ /// [`Cow<'_, str>`]: std::borrow::Cow
63
64
/// # Examples
65
0 commit comments