You might want to look into using `Arc<str>`. It's an immutable string slice that can have many owners and will be dropped once the last one is done with it.
A `&str` is a borrow of the string slice data, and has borrowing semantics. An `std::sync::Arc<str>` on the other hand isn't borrowed but has shared ownership and is atomically reference counted.
Does that answer the question? Could you expand on what you mean by sharing `&str`?
KingOfCoders|4 years ago
phaylon|4 years ago
rmdashrfstar|4 years ago
phaylon|4 years ago
Does that answer the question? Could you expand on what you mean by sharing `&str`?