[][src]Type Definition algonium::math::Mint107

type Mint107 = Mint<Mod107>;

Wrapper class to compute mod 1_000_000_007 automatically.

Examples

use algonium::math::{Mint107, MOD_107};
let x: Mint107 = 1234567.into();
let y: Mint107 = 2345678.into();
let z = x * y;
assert_eq!(z.val as u64, 1234567u64 * 2345678u64 % MOD_107 as u64);