bint-rs
Bounded Integer in Rust
Usage
extern crate bint;
let b: bint::Bint = bint::Bint {value: 5, boundary: 6 };
let c: Bint = b.up();
let d: Bint = c.up();
println!("{} {} {}", b, c, d); // Prints 5 0 1
Bounded Integer in Rust
extern crate bint;
let b: bint::Bint = bint::Bint {value: 5, boundary: 6 };
let c: Bint = b.up();
let d: Bint = c.up();
println!("{} {} {}", b, c, d); // Prints 5 0 1