Commit a4536aa
Have a way to "destructure" a Utf8StringRef.
I need to consume the Utf8StringRef while returning the internal
reference for lifetime reasons. Using as_str makes it look like it is
borrowing from the Utf8StringRef instead of the source.
Sorry for the API breakage on into_str, if you want I can rename the
new method into_borrowed_str or something.1 parent 23ef747 commit a4536aa
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
354 | 359 | | |
355 | 360 | | |
356 | 361 | | |
| |||
0 commit comments