Crate finite_fields [] [src]

Modules

error

Macros

binary_type

A macro that defines a binary field type.

binary_type_arithmetic

Implements arithmetic on a binary type, with overflow and division by zero errors.

field_common_deps

Specifies the dependencies and common traits required for finite field types. Not used directly, since type macros use it themselves.

unit_binary

A macro that defines a unit-width binary type as a newtype struct, with associated arithmetic traits. Used as a building block in other macros.

unit_binary_arithmetic

Implements arithmetic on a unit binary newtype with overflow and division by zero errors.

Structs

b1

The base binary type, a unit-width binary digit.

b2

A two-digit binary number.

Constants

ONE

Shorthand for one in unit-width binary type.

ZERO

Shorthand for zero in unit-width binary type.

Traits

Peano

Peano arithmetic operators.

Shift

Bit shifting.