Typenum
Typenum is a Rust library for type-level numbers evaluated at compile time. It currently supports bits, unsigned integers, and signed integers.
For the full documentation, go here.
Here is a short example of its use:
use Add;
use ;
use Integer;
use Pow;
type X = Output;
assert_eq!;
type Y = Output;
assert_eq!;