exint 0.1.4

An implementation of generic signed and unsigned integers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Checked integer addition. Computes `self + rhs`,
returning `None` if overflow occurred.

# Examples

Basic usage:

```
# use ::exint::primitive::*;
# ::exint::uint! {
assert_eq!((u24::MAX - 2_u24).checked_add(1_u24), Some(u24::MAX - 1_u24));
assert_eq!((u24::MAX - 2_u24).checked_add(3_u24), None);
# }
```