Taking suggestions for zero-cost (&’static str) -> String should be called.
Currently looking at String::its_lit(“
”)
-
-
Replying to @Gankra_
How would that be possible? For that String would need to know that this content is not allocated by String itself and it shouldn't drop it?
2 replies 0 retweets 0 likes -
Replying to @RReverser
tl;dr you set the cap to 0, and for almost everything that Does The Right Thing already
1 reply 0 retweets 0 likes -
Replying to @Gankra_
Interesting. Wouldn't this still better be implemented as space optimisation for Cow<str> to avoid confusion and adding new API?
2 replies 0 retweets 0 likes -
Replying to @RReverser
~no one uses Cow<str> in their APIs, and it's much more effecient to bake into a custom type
3 replies 0 retweets 0 likes
Replying to @Gankra_ @RReverser
Well technically the API uses Into<Cow<str>>` but that's beside the point
10:10 AM - 23 Dec 2017
from Albuquerque, NM
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.