|
|
|
|
|
by Dwedit
551 days ago
|
|
There's basically no distinction between a string view and an array slice. It's borrowing an array, and the view is nothing but a reference to the parent, start position, and length. But views are also implemented as a plain pointer and a length, and that's where the memory safety issues from borrowing begin. |
|