-
Notifications
You must be signed in to change notification settings - Fork 143
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
#214
Comments
Sure, I'm fine with that. It should be easy if you'd like to add that
yourself and send a PR.
|
remexre
pushed a commit
to remexre/num
that referenced
this issue
Jun 1, 2017
cuviper
pushed a commit
to cuviper/num
that referenced
this issue
Sep 22, 2017
Implement `is_one` for all number types in crate. Closes rust-num#214 BREAKING CHANGE: Implementors of `One` need to provide a `is_one` method.
Closed
This issue was moved to rust-num/num-traits#5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: