crates.io Build Status

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:

```rust use std::ops::Add; use typenum::consts::{N2, P3, P4}; use typenum::int::Integer; use typenum::Pow;

type X = >::Output; asserteq!(::toi32(), 7);

type Y = >::Output; asserteq!(::toi32(), -8); ```