Skip to content
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

Closed
pyfisch opened this issue Aug 5, 2016 · 2 comments
Closed

Add method is_one to One trait #214

pyfisch opened this issue Aug 5, 2016 · 2 comments

Comments

@pyfisch
Copy link

pyfisch commented Aug 5, 2016

The Zero trait contains two methods: zero returns the number 0 for the given type and is_zero is provided and can be used to check if a number is 0.

The One trait is similar but contains only the method one to create the number 1. Please also add a method to check if a number is one.

@cuviper
Copy link
Member

cuviper commented Aug 5, 2016 via email

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.
@cuviper
Copy link
Member

cuviper commented Dec 19, 2017

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants