3 releases (breaking)
0.3.2 | Nov 11, 2022 |
---|---|
0.3.1 |
|
0.3.0 |
|
0.2.0 | Apr 16, 2022 |
0.1.0 | Jan 31, 2021 |
#1551 in Math
Used in 3 crates
37KB
825 lines
arith_traits
Traits unifying types based on various supported arithmetic operations.
If you've ever wanted your generic function to accept any value that supports, for example,
checked arithmetic, you have discovered that std
does not define a trait
that all checked types
implement.
This crate remedies that. It was developed to simplify the implementation of the
arranged
crate and is leveraged by the companion
arith_wrappers
crate. It may also be of value to other crates performing
generic arithmetic.
License
Licensed under either:
- MIT license (see LICENSE-MIT file)
- Apache License, Version 2.0 (see LICENSE-APACHE file) at your option.
Contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~0.3–0.9MB
~20K SLoC