Crate relp_num

Source
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.
NonZeroUbig
Non zero unsigned big integer.
One
A type representing the value 1.
Ubig
Unsigned big integer.
Zero
Zero

Enums§

Binary
Binary
NonZeroSign
Sign of a nonzero value.
Sign
Sign with a zero variant.
SignedOne
A type representing the value 1 or -1.

Traits§

Abs
Absolute value of a number.
FromPrimitive
A generic trait for converting a number to a value.
Negateable
A number that can be negated, that is, who’s sign can be flipped.
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 Aliases§

NonZeroRational8
Non zero rational number.
NonZeroRational16
Non zero rational number.
NonZeroRational32
Non zero rational number.
NonZeroRational64
Non zero rational number.
NonZeroRational128
Non zero rational number.
NonZeroRationalBig
A non zero arbitrary precision type.
NonZeroRationalUsize
Non zero rational number.
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.
RationalUsize
A signed ratio between two small integers.

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.