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
Returns the minimum number of bits required to represent `self`.

This method returns zero if `self` is zero.

# Examples

Basic usage:

```
# use ::exint::primitive::*;
# ::exint::uint! {
assert_eq!(0_u24.bit_width(), 0);
assert_eq!(0b111_u24.bit_width(), 3);
assert_eq!(0b1110_u24.bit_width(), 4);
assert_eq!(u24::MAX.bit_width(), 24);
# }
```