2 ms·
I suppose my question is what motivates the use of atomically referencing counting string slice rather than borrowing?
by rmdashrfstar 5y ago
I suppose my question is what motivates the use of atomically referencing counting string slice rather than borrowing?
- phaylon 5y agoYou can store it independently without it being borrowed. So your structs don't need lifetimes. I consider it a midpoint between `String` and `&str`. Most of the convenience of `String` (barring mutation) but less costly.