Aint
Aint is a crate implementing integers of non-standard bit widths between
1 and 127. These integer types are represented by the next largest built-in
Rust integer, but are bounded to the range and behaviors of the advertised
bit width. That is, T::MIN
and T::MAX
, are what would be expected for
the integer T
with N
bits, and similarly, wrapping, saturating, and
overflow behaviors match what would be expected for a hypothetical built-in
integer T
with N
bits.
Example
let x = i13!;
let y = add;
assert_eq!;
See the documentation for details.