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
Checked shift left. Computes `self << rhs`, returning `None`
if `rhs` is larger than or equal to the number of bits in `self`.

# Examples

Basic usage:

```
# use ::exint::primitive::*;
# ::exint::uint! {
assert_eq!(0x1_u24.checked_shl(4), Some(0x10_u24));
assert_eq!(0x10_u24.checked_shl(129), None);
assert_eq!(0x10_u24.checked_shl(u24::BITS - 1), Some(0_u24));
# }
```