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 subtraction. Computes `self - rhs`,
returning `None` if overflow occurred.

# Examples

Basic usage:

```
# use ::exint::primitive::*;
# ::exint::uint! {
assert_eq!((i24::MIN + 2_i24).checked_sub(1_i24), Some(i24::MIN + 1_i24));
assert_eq!((i24::MIN + 2_i24).checked_sub(3_i24), None);
# }
```