Module rug::rational [] [src]

Arbitrary-precision rational numbers.

This module provides support for arbitrary-precision rational numbers of type Rational.

Structs

MutNumerDenom

Used to borrow the numerator and denominator of a Rational number mutably.

ParseRationalError

An error which can be returned when parsing a Rational number.

SmallRational

A small rational number that does not require any memory allocation.

ValidRational

A validated string that can always be converted to a Rational.