-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add method is_one
to One
trait
#5
Comments
Sure, I'm fine with that. It should be easy if you'd like to add that |
It turned out not so easy without a breaking change, although we could add it |
That was rust-num/num#336 on the |
The issue description/title should be updated to mention removing the |
Shouldn't this be closed? |
I added the |
From @pyfisch on August 5, 2016 17:15
The
Zero
trait contains two methods:zero
returns the number 0 for the given type andis_zero
is provided and can be used to check if a number is 0.The
One
trait is similar but contains only the methodone
to create the number 1. Please also add a method to check if a number is one.Copied from original issue: rust-num/num#214
The text was updated successfully, but these errors were encountered: