finite-fields 0.10.3

Traits and types for computations on finite fields.
1
2
3
4
5
6
7
8
9
10
#![allow(non_camel_case_types)]
#![feature(try_from)]
#[macro_use] extern crate finite_fields;

/// Creates a unit ternary type named `t1`.
unit_nary! { t1, 3, u8 }

fn main() {
  println!("{}", (0..2).fold(ZERO, |accum, _| (accum + ONE).unwrap()));
}