Module range_compare

Source
Expand description

Type and functions for comparing inclusive ranges

Enums§

RangeCompare
Result of comparing a pair of ranges (A,B)
RangeDisjoint
Ways in which a pair of ranges (A,B) can be disjoint
RangeIntersect
Ways in which a pair of ranges (A,B) can intersect

Functions§

intersection
Compute the intersection of two inclusive ranges. Returns an empty range if they are disjoint.
range_compare
Compare two inclusive ranges.