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

Make all types that implements ::num_traits::Zero implement crate::num_traits::Zero #106

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

TonalidadeHidrica
Copy link
Collaborator

This PR depends on #102 and #105. In addition to the changes applied in the PRs, this PR has a bonus: every type that implements ::num_traits::Zero implements crate::num_traits::Zero too. Therefore, if your crate depends on num_traits and have a type that implement ::num_traits::Zero and want to use it for Fenwick Tree, you can just use it without suffering. On the other hands, even fi your crate does not depend on num_traits but still want to use your own type for Fenwick Tree, you can manually implement crate::num_traits::Zero.

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

Successfully merging this pull request may close these issues.

2 participants