Crate relp_num[][src]

Expand description

relp-num

Number types for the RELP crate.

Macros

F

Helper macro for tests.

R8

Shorthand for creating a rational number in tests.

R16

Shorthand for creating a rational number in tests.

R32

Shorthand for creating a rational number in tests.

R64

Shorthand for creating a rational number in tests.

R128

Shorthand for creating a rational number in tests.

RB

Shorthand for creating a rational number in tests.

Structs

NonZeroFactorization

Prime factorization representation of a nonzero rational number.

One

A type representing the value 1.

Zero

Zero

Enums

Binary

Binary

NonZeroSign

Sign of a nonzero value.

Sign

Sign with a zero variant.

Traits

Abs

Absolute value of a number.

FromPrimitive

A generic trait for converting a number to a value.

NonZero

Nonzero values

NonZeroFactorizable

Creating a factorization of an integer or rational number.

NonZeroSigned

A signed number that can have a nonzero value.

Prime

Determining whether a number is a prime.

Signed

Signed numbers

Type Definitions

Rational8

A signed ratio between two small integers.

Rational16

A signed ratio between two small integers.

Rational32

A signed ratio between two small integers.

Rational64

A signed ratio between two small integers.

Rational128

A signed ratio between two small integers.

RationalBig

An arbitrary precision type.

Trait aliases

Field

Basic field operations with Self and with references to Self.

FieldRef

A reference to a variable that is in a Field.

OrderedField

The simplex algorithm is defined over the ordered fields.

OrderedFieldRef

A reference to an ordered field.