You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going to naively suggest this because it seems like a better idea than making a copy of the whole str library for things that return @str. Now people can tell me why that's a bad idea :-)
The text was updated successfully, but these errors were encountered:
Can you be more specific about what you have in mind? Is this just an empty String trait to be used as a typeclass for generic string functions, or is there more to it?
Most functions in std::str are either methods on &str or functions taking &str, and there is now a Str trait that provides .as_slice() to do an explicit coercion of a generic string to &str (if it is ever necessary), so this can probably be closed.
I'm going to naively suggest this because it seems like a better idea than making a copy of the whole
str
library for things that return@str
. Now people can tell me why that's a bad idea :-)The text was updated successfully, but these errors were encountered: