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.
NOTE: Currently requires nightly compiler.
Licensed under either:
- MIT license (see LICENSE-MIT file)
- Apache License, Version 2.0 (see LICENSE-APACHE file) at your option.
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.