Closed epage closed 2 years ago
Real name needed
Basically, I found I was using Cow a lot in liquid-rust. What if we made a sstring crate
Cow
sstring
SString
String
&'static str
SStr
&'str
'static
into_owned
We'd then need to wrap all of the string operations to return either of these
kstring covers this
Real name needed
Basically, I found I was using
Cow
a lot in liquid-rust. What if we made asstring
crateSString
would containString
and&'static str
SStr
would contain&'str
and&'static str
, reserving the knowledge of it being'static
for if ainto_owned
is performedWe'd then need to wrap all of the string operations to return either of these