-
Notifications
You must be signed in to change notification settings - Fork 159
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
Remove Pod bounds on traits #551
Conversation
An |
To elaborate on why |
So the alternative is to remove the Pod bound from various traits e.g. |
I think moving the |
After much toil: done. |
I wish you had waited for more discussion before doing this much work. My initial reaction is that we don't want this change. Can you show what this allows you to accomplish? I don't understand how you can implement |
I'll discuss further in #549 |
Separately from the discussion in #549 I think it might be good to land this from a separation-of-concerns perspective. These traits don't care about being |
Yes, technically the The amount of boilerplate that you had to add in |
Because Pod has a 'static bound, its present on many traits means it is
impossible to implement those traits on any type that has a non-static
lifetime. Removing the Pod bounds requires granular bounds elsewhere, which are
added here.