-
Notifications
You must be signed in to change notification settings - Fork 20
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
Use num-traits for numeric basic traits #11
Comments
A corrected current possible implementation here:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to implement a write operation for exponential golumb-coded integers in bitstream (used in h264 and other format). While I was trying to implement one for unsigned and one for signed, it seems that the declaration of Numeric trait conflicts with Unsigned trait from num-traits. Using the original numeric and implementing other things again is not really elegant.
Code is:
Using Numeric for PrimInt will complain about one and zero definitions. numeric-trait seems to be well maintained, and it seems changing Numeric from the current implementation to
will not hurt any current users, and will reduce the amount of code needed to maintain (except one additional dependency).
The text was updated successfully, but these errors were encountered: