We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39b3264 commit 751b169Copy full SHA for 751b169
crates/cxx-qt-lib/src/core/qanystringview.rs
@@ -95,6 +95,13 @@ impl<'a> From<&'a str> for QAnyStringView<'a> {
95
}
96
97
98
+impl<'a> From<&'a String> for QAnyStringView<'a> {
99
+ /// Constructs a QAnyStringView from a &String
100
+ fn from(string: &'a String) -> Self {
101
+ string.as_str().into()
102
+ }
103
+}
104
+
105
impl From<&QString> for QAnyStringView<'_> {
106
/// Constructs a QAnyStringView from a QString
107
fn from(string: &QString) -> Self {
0 commit comments