Skip to content

Generalize Wrapping traits #365

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rickwebiii
Copy link

I need to perform wrapping arithmetic where T and the right hand side are not the same type, which you cannot do with the existing Wrapping* traits. This change generalizes these traits so you can perform wrapping computation with a different RHS.

This will be a breaking change for anyone that implements Wrapping* traits, as they'll need to specify the associated type for the output.

@rickwebiii
Copy link
Author

I'm beginning to see how nasty this change will be to propagate...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants