Expand description

Iterators that generate Rationals without repetition.

Structs

Generates all negative Rationals.

Generates all nonzero Rationals.

Generates all positive Rationals.

Generates all Rationals with a specific denominator and with numerators from a given iterator. Numerators that are not coprime with the denominator are skipped.

Functions

Generates all negative Rationals.

Generates all non-positive Rationals.

Generates all nonzero Rationals.

Generates all positive Rationals.

Generates all Rationals in the closed range $[a, b]$ and with a specific denominator, in order of increasing absolute value.

Generates all Rationals in the half-open range $[a, b)$ and with a specific denominator, in order of increasing absolute value.

Generates all Rationals greater than or equal to some number $a$ and with a specific denominator, in order of increasing absolute value.

Generates all Rationals less than or equal to some number $a$ and with a specific denominator, in order of increasing absolute value.