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
15
16
17
Checked integer division without remainder. Computes `self / rhs`,
returning `None` if `rhs == 0`, the division results in overflow,
or `self % rhs != 0`.

# Examples

Basic usage:

```
# use ::exint::primitive::*;
# ::exint::uint! {
assert_eq!((i24::MIN + 1_i24).checked_div_exact(-1_i24), Some(i24::MAX));
assert_eq!(-5_i24.checked_div_exact(2_i24), None);
assert_eq!(i24::MIN.checked_div_exact(-1_i24), None);
assert_eq!(1_i24.checked_div_exact(0_i24), None);
# }
```