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
Unchecked integer addition. Computes `self + rhs`,
assuming overflow cannot occur.

Calling `x.unchecked_add(y)` is semantically equivalent to calling
`x.`[`checked_add`]`(y).`[`unwrap_unchecked`]`()`.

If you're just trying to avoid the panic in debug mode, then **do not** use
this. Instead, you're looking for [`wrapping_add`].

# Safety

This results in undefined behavior when `self + rhs > uint::MAX` or
`self + rhs < uint::MIN`, i.e. when [`checked_add`] would return `None`.

[`checked_add`]: Self::checked_add
[`wrapping_add`]: Self::wrapping_add
[`unwrap_unchecked`]: ::core::option::Option::unwrap_unchecked