Add from<&String> to QAnyStringView
Makes constructing a QAnyStringView from String slightly less verbose
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
39b3264) to head (ed664b2).
Additional details and impacted files
@@ Coverage Diff @@
## main #1127 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 71 71
Lines 11927 11927
=========================================
Hits 11927 11927
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@nicolasfella I'm all for making this convenient.
However, I'm wondering why the From<&str> implementation isn't sufficient...
String should deref to &str, so in theory QAnyStringView::from(&my_string) should do the trick.
And I assume the same works for my_string.into().
Can you share the exact code that this get's rid off.
@nicolasfella ping?