-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string: add impl From<&IString> for IString #37
Conversation
Do other ImplicitClone types suffer from this? Would |
@kirillsemyonkin it doesn't seem so:
|
@cecton What about other types ( |
Vec doesn't have this feature. I checked already. (I didn't bother checking HashMap but I assume it's the same). |
@cecton Weird that they do not. If they are worried about allocations, they would probably ban |
I love the spirit In my use-case I did have a need for But I really don't mind adding it for IArray and IMap. Worst case scenario we revert that before 1.0 because we found out it was bad in some way. Not everything has to be perfect and if it's safe to try, we should probably try. |
I just notice that this is possible with String but not with IString:
I get this issue while using Yew that could be fixed that way: