arcstr icon indicating copy to clipboard operation
arcstr copied to clipboard

Any chance for make_mut()?

Open cehteh opened this issue 3 years ago • 0 comments

From the Docs:

  • ArcStr is totally immutable. No need to lose sleep because you’re afraid of code which thinks it has a right to mutate your Arcs just because it holds the only reference…

This makes me wonder if you strongly oppose such a feature or are open to a PR which adds this (possibly feature gated).

For the time being I made my own 'cowstr' crate, but on a closer inspection it should be possible to add mutability to 'ArcStr' in a sound way.

cehteh avatar Oct 01 '22 08:10 cehteh