-
Notifications
You must be signed in to change notification settings - Fork 599
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
Use NonMax to signal builder range constraints #2703
Conversation
Are we sure we want to expose a third-party type to the user like this? What's it like to convert from primitive ints to |
We have already exposed it to users in many model types, constructing them is the same as NonZero. |
At least for those it's easy to just call |
It is a half measure, and signalling that discord has a narrower range than u16 is exactly what is required to get someone to read the docs. It isn't easy to just call .into() for non zero types, that isn't an impl. |
What do you mean? Every |
Ah, you meant getting the value out of a NonMax. |
2b1d562
to
8c29339
Compare
No description provided.