Macro finite_fields::binary_type [] [src]

macro_rules! binary_type {
    ($tyname:ident, $fieldwidth:expr) => { ... };
}

A macro that defines a binary field type.

The first argument is the desired type name, and the second the field width (e.g, 2 for two-digit binary numbers). The second argument should be integral.

The result will be a newtype struct and associated arithmetic implementations.