-
Notifications
You must be signed in to change notification settings - Fork 148
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
Traits for NonZero types? #397
Comments
I found my way here looking for the ability to create a |
If we were to add non-zero traits, I see it only as a generic consolidation of the functionality available in the specific
Rust coherence means that impls require either the type or the trait to be local. Since that type is defined in
For |
Ok. Thank you for explaining how it works. |
Can't find NonZero anywhere in the docs.
Similar to the #391, would be nice to have ToNonZero and ToHasZero and a trait for
new
,new_unchecked
, andget
.The text was updated successfully, but these errors were encountered: